/* ==========================================================================
   Home (site/index) — built on tokens.css. Logical properties for RTL.
   ========================================================================== */

.ds-home { background: var(--ds-surface); color: var(--ds-ink); }
.ds-home__wrap { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.ds-home ul, .ds-home ol { list-style: none; margin: 0; padding: 0; }
.ds-home h1, .ds-home h2, .ds-home h3 { text-wrap: balance; }
.ds-home a:focus-visible, .ds-home summary:focus-visible { outline: none; box-shadow: var(--ds-focus); border-radius: var(--ds-radius); }
[dir="rtl"] .ds-home__arrow { transform: scaleX(-1); }

/* Buttons */
.ds-home__btn { min-height: 54px; padding-inline: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--ds-radius-md); font-weight: 800; font-size: 17px; }
.ds-home__btn--ghost { background: #fff; border-color: var(--ds-line-strong); color: var(--ds-ink); font-weight: 700; }
.ds-home__btn--ghost:hover { background: var(--ds-bg-soft); border-color: var(--ds-ink); color: var(--ds-ink); }

/* ---------- Hero */
.ds-home__hero { background: #fbf7f6; border-bottom: 1px solid #f1e9e7; }
.ds-home__hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 64px; }
.ds-home__hero-copy { flex: 1 1 520px; min-width: 0; }
.ds-home__badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: #fff; border: 1px solid #f0d5da; color: var(--ds-primary-text); font-size: 14px; font-weight: 700;
}
.ds-home__dot { width: 8px; height: 8px; border-radius: 50%; background: #15803d; }
.ds-home__title { margin: 20px 0 0; font-size: 52px; line-height: 1.25; font-weight: 800; }
.ds-home__lead { margin: 20px 0 0; max-width: 600px; font-size: 19px; line-height: 1.8; color: var(--ds-text-2); }
.ds-home__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ds-home__ticks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px !important; color: var(--ds-text-2); font-size: 15px; font-weight: 600; }
.ds-home__ticks li { display: flex; align-items: center; gap: 6px; }
.ds-home__ticks svg { color: #15803d; flex: none; }

.ds-home__hero-side { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.ds-home__deal {
    width: 100%; max-width: 440px; display: flex; flex-direction: column; padding: 20px; color: var(--ds-ink);
    background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-xl); box-shadow: var(--ds-shadow);
    transition: transform .2s, box-shadow .2s;
}
.ds-home__deal:hover { color: var(--ds-ink); transform: translateY(-2px); box-shadow: 0 30px 56px -24px rgba(20, 20, 20, .3); }
.ds-home__deal-img { height: 220px; border-radius: 14px; background: var(--ds-neutral-bg); overflow: hidden; display: block; }
.ds-home__deal-img img { width: 100%; height: 100%; object-fit: cover; }
.ds-home__deal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.ds-home__deal-head strong { font-size: 18px; font-weight: 800; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.ds-home__deal-head .ds-pill { flex: none; }
.ds-home__deal-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ds-home__deal-nums > span { display: block; padding: 12px; border-radius: var(--ds-radius-md); background: var(--ds-bg-soft); }
.ds-home__deal-nums small { display: block; font-size: 13px; color: var(--ds-muted); font-weight: 600; }
.ds-home__deal-nums b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; text-align: start; }
.ds-home__deal-nums .is-profit { background: var(--ds-success-bg); }
.ds-home__deal-nums .is-profit small, .ds-home__deal-nums .is-profit b { color: var(--ds-success); }
.ds-home__deal-note { margin-top: 8px; font-size: 12px; color: var(--ds-muted); }
.ds-home__deal-cta { margin-top: 16px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--ds-radius-md); background: var(--ds-ink); color: #fff; font-weight: 700; }

/* ---------- Countries */
.ds-home__countries { border-bottom: 1px solid var(--ds-line); }
.ds-home__countries-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px; }
.ds-home__countries-title { margin: 0; font-size: 16px; font-weight: 800; }
.ds-home__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-home__chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--ds-line-strong); color: var(--ds-text-2); font-weight: 600; font-size: 15px; background: #fff;
}
.ds-home__chip:hover { border-color: var(--ds-ink); color: var(--ds-ink); }
.ds-home__chip img { border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.ds-home__chip.is-main { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; font-weight: 700; }
.ds-home__chip-tag { font-size: 12px; background: #15803d; color: #fff; padding: 2px 8px; border-radius: 999px; }

/* ---------- Offers (admin sliders) */
.ds-home__offers { padding-block: 32px 0; }
.ds-home__offers-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ds-home__offer { margin: 0; scroll-snap-align: start; border-radius: var(--ds-radius-lg); overflow: hidden; background: var(--ds-neutral-bg); aspect-ratio: 16 / 7; max-width: 100%; }
.ds-home__offer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Sections */
.ds-home__section { padding-block: 88px; }
.ds-home__section--tight { padding-block: 72px 24px; }
.ds-home__band { background: var(--ds-bg-soft); border-block: 1px solid var(--ds-line); }
.ds-home__band .ds-home__section { padding-block: 80px; }
.ds-home__head { max-width: 680px; }
.ds-home__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ds-home__eyebrow { margin: 0; color: var(--ds-primary-text); font-weight: 800; font-size: 15px; }
.ds-home__h2 { margin: 8px 0 0; font-size: 38px; line-height: 1.3; font-weight: 800; }
.ds-home__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--ds-primary-text); }

/* Steps */
.ds-home__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px !important; }
.ds-home__step { border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); padding: 24px; background: #fff; }
.ds-home__step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--ds-primary); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.ds-home__step h3 { margin: 16px 0 0; font-size: 20px; font-weight: 800; }
.ds-home__step p { margin: 8px 0 0; color: var(--ds-text-2); line-height: 1.75; font-size: 16px; }

/* Products */
.ds-home__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 32px !important; }
.ds-home__product { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ds-home__product:hover { border-color: var(--ds-line-strong); box-shadow: 0 16px 32px -20px rgba(20, 20, 20, .3); }
.ds-home__product-img { display: block; aspect-ratio: 3 / 2; background: #efedeb; overflow: hidden; }
.ds-home__product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ds-home__product:hover .ds-home__product-img img { transform: scale(1.03); }
.ds-home__product-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ds-home__product-body h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.ds-home__product-body h3 a { color: var(--ds-ink); }
.ds-home__product-body h3 a:hover { color: var(--ds-primary-text); }
.ds-home__product-prices { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--ds-muted); }
.ds-home__product-prices b { color: var(--ds-ink); }
.ds-home__product-profit { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--ds-radius); background: var(--ds-success-bg); color: var(--ds-success); }
.ds-home__product-profit span:first-child { font-weight: 700; font-size: 14px; }
.ds-home__product-profit b { font-weight: 800; font-size: 18px; white-space: nowrap; }
.ds-home__product-cta { margin-top: auto; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--ds-radius); font-weight: 700; }

/* Categories */
.ds-home__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 32px !important; }
.ds-home__cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); color: var(--ds-ink); text-align: center; height: 100%; }
.ds-home__cat:hover { border-color: var(--ds-ink); color: var(--ds-ink); }
.ds-home__cat-img { width: 80px; height: 80px; border-radius: 50%; background: var(--ds-neutral-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ds-muted); }
.ds-home__cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ds-home__cat-name { font-weight: 700; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

/* Features */
.ds-home__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; margin-top: 48px !important; }
.ds-home__feature { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); }
.ds-home__feature > div { min-width: 0; }
.ds-home__feature-icon { flex: 0 0 48px; height: 48px; border-radius: var(--ds-radius-md); background: var(--ds-primary-soft); color: var(--ds-primary-text); display: flex; align-items: center; justify-content: center; }
.ds-home__feature h3 { margin: 0; font-size: 19px; font-weight: 800; }
.ds-home__feature p { margin: 6px 0 0; color: var(--ds-text-2); line-height: 1.75; font-size: 16px; }

/* Videos */
.ds-home__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; margin-top: 32px !important; }
.ds-home__video { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); overflow: hidden; }
.ds-home__video > a { display: block; padding: 14px 16px; font-weight: 700; color: var(--ds-ink); }
.ds-home__video > a:hover { color: var(--ds-primary-text); }

/* Testimonials */
.ds-home__reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 32px !important; }
.ds-home__review { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); }
.ds-home__stars { display: flex; gap: 2px; color: var(--ds-line-strong); font-size: 15px; }
.ds-home__stars .is-on { color: #d97706; }
.ds-home__review blockquote { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ds-text-2); flex: 1; }
.ds-home__review-who { margin: 0; font-size: 15px; color: var(--ds-muted); }
.ds-home__review-who strong { color: var(--ds-ink); }

/* FAQ */
.ds-home__faq { padding-top: 0; }
.ds-home__faq-list { margin-top: 32px; display: grid; gap: 10px; max-width: 880px; }
.ds-home__qa { border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); background: #fff; }
.ds-home__qa[open] { border-color: var(--ds-line-strong); }
.ds-home__qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; }
.ds-home__qa summary::-webkit-details-marker { display: none; }
.ds-home__qa summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ds-bg-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; transition: transform .2s; }
.ds-home__qa[open] summary::after { transform: rotate(45deg); }
.ds-home__qa-body { padding: 0 20px 18px; color: var(--ds-text-2); line-height: 1.8; }
.ds-home__qa-body > :last-child { margin-bottom: 0; }

/* Brands */
.ds-home__brands { border-top: 1px solid var(--ds-line); background: var(--ds-bg); }
.ds-home__brands-row { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; padding-block: 28px !important; }
.ds-home__brands-row a { display: flex; align-items: center; min-height: 44px; color: var(--ds-text-2); font-weight: 700; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.ds-home__brands-row a:hover { filter: none; opacity: 1; }
.ds-home__brands-row img { max-height: 48px; max-width: 120px; object-fit: contain; }

/* CTA */
.ds-home__cta-wrap { padding-block: 24px 88px; }
.ds-home__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 32px; padding: 56px 48px; border-radius: 24px; background: var(--ds-ink); color: #fff; }
.ds-home__cta-copy { flex: 1 1 460px; min-width: 0; }
.ds-home__cta h2 { margin: 0; font-size: 36px; line-height: 1.35; font-weight: 800; color: #fff; }
.ds-home__cta-copy p { margin: 12px 0 0; font-size: 18px; line-height: 1.8; color: #d6d3d1; }
.ds-home__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-home__btn--wa { border: 1px solid #5b5b66; color: #fff; font-weight: 700; }
.ds-home__btn--wa:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.ds-home__news { flex: 1 1 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ds-home__news label { display: block; font-weight: 700; margin-bottom: 10px; color: #e7e5e4; }
.ds-home__news-row { display: flex; gap: 8px; max-width: 520px; }
.ds-home__news-row .form-control { min-height: var(--ds-control-h); flex: 1; min-width: 0; }
.ds-home__news-row .btn { min-height: var(--ds-control-h); padding-inline: 20px; font-weight: 700; white-space: nowrap; }
.ds-home__news-msg { min-height: 20px; margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.ds-home__news-msg.is-ok { color: #86efac; }
.ds-home__news-msg.is-bad { color: #fca5a5; }

/* ---------- Responsive */
@media (max-width: 991.98px) {
    .ds-home__title { font-size: 40px; }
    .ds-home__h2 { font-size: 30px; }
    .ds-home__section { padding-block: 64px; }
    .ds-home__band .ds-home__section { padding-block: 56px; }
}
@media (max-width: 575.98px) {
    .ds-home__wrap { padding-inline: 16px; }
    .ds-home__hero-grid { padding-block: 40px; gap: 32px; }
    .ds-home__title { font-size: 32px; line-height: 1.35; }
    .ds-home__lead { font-size: 17px; }
    .ds-home__ctas .ds-home__btn, .ds-home__cta-actions .ds-home__btn { width: 100%; }
    .ds-home__h2 { font-size: 26px; }
    .ds-home__section { padding-block: 48px; }
    .ds-home__steps, .ds-home__features { margin-top: 28px !important; }
    .ds-home__deal-nums b { font-size: 17px; }
    .ds-home__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ds-home__product-body { padding: 12px; gap: 10px; }
    .ds-home__product-body h3 { font-size: 15px; }
    .ds-home__product-prices { flex-direction: column; font-size: 13px; gap: 2px; }
    .ds-home__product-profit { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; }
    .ds-home__product-profit b { font-size: 16px; }
    .ds-home__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ds-home__cat-img { width: 64px; height: 64px; }
    .ds-home__cta { padding: 32px 20px; border-radius: 20px; }
    .ds-home__cta h2 { font-size: 26px; }
    .ds-home__news-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-home__deal, .ds-home__product-img img, .ds-home__qa summary::after { transition: none; }
}
