/*
 * Drip Sell Blocks — blocks.css
 * Все правила с префиксом .ds- для изоляции от темы
 */

/* ── Шрифты ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS-переменные ─────────────────────────────────────────────────────── */
:root {
    --ds-black:     #111111;
    --ds-white:     #ffffff;
    --ds-alt:       #fafaf9;
    --ds-border:    #efefed;
    --ds-border2:   #e8e8e6;
    --ds-muted:     #777777;
    --ds-light:     #999999;
    --ds-lighter:   #aaaaaa;
    --ds-lightest:  #bbbbbb;
    --ds-gray:      #888888;
    --ds-green:     #22c55e;
    --ds-red:       #ef4444;
    --ds-px:        clamp(20px, 5vw, 60px);
    --ds-font-h:    'Barlow Condensed', sans-serif;
    --ds-font-b:    'Outfit', sans-serif;
}

/* ── Fullwidth template ─────────────────────────────────────────────────── */
.ds-fullwidth-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.ds-fullwidth-main .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Базовые обёртки ────────────────────────────────────────────────────── */
.ds-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ds-px);
    padding-right: var(--ds-px);
}
.ds-wrap--narrow { max-width: 720px; }

.ds-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--ds-border);
}
.ds-section--alt { background: var(--ds-alt); }

/* ── Типографика ────────────────────────────────────────────────────────── */
.ds-overline {
    font-family: var(--ds-font-h);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: var(--ds-lightest);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.ds-heading {
    font-family: var(--ds-font-h);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ds-black);
    line-height: 0.95;
    margin: 0 0 28px;
    text-transform: uppercase;
}
.ds-section-header {
    margin-bottom: 48px;
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font-b);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 15px 32px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    text-transform: uppercase;
}
.ds-btn:hover { opacity: 0.85; }
.ds-btn--dark  { background: var(--ds-black); color: var(--ds-white); }
.ds-btn--white { background: var(--ds-white); color: var(--ds-black); }

/* ════════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════════ */
.ds-hero {
    min-height: 88vh;
    max-width: 1440px;
    margin: 0 auto;
}
.ds-hero__inner {
    display: flex;
    min-height: 88vh;
}
.ds-hero__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 60px;
}
.ds-hero__heading {
    font-family: var(--ds-font-h);
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: var(--ds-black);
    margin: 0 0 24px;
}
.ds-hero__sub {
    font-family: var(--ds-font-b);
    font-size: 15px;
    color: var(--ds-muted);
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 36px;
}
.ds-hero__btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.ds-hero__link {
    font-family: var(--ds-font-b);
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-black);
    text-decoration: none;
    border-bottom: 1.5px solid var(--ds-black);
    padding-bottom: 2px;
}
.ds-hero__note {
    font-family: var(--ds-font-b);
    font-size: 11.5px;
    color: var(--ds-lightest);
    margin: 0;
}
.ds-hero__img-wrap {
    width: 48%;
    overflow: hidden;
    background: #f5f5f3;
    border-left: 2px solid var(--ds-black);
    flex-shrink: 0;
}
.ds-hero__img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-lighter);
    font-family: var(--ds-font-b);
    font-size: 14px;
}
.ds-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
.ds-hero__img:hover { transform: scale(1.03); }

/* ════════════════════════════════════════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.ds-stats {
    display: flex;
    border-top: 2px solid var(--ds-black);
    border-bottom: 1px solid var(--ds-border2);
    background: var(--ds-alt);
}
.ds-stats__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    border-right: 1px solid var(--ds-border2);
    gap: 4px;
}
.ds-stats__item--last { border-right: none; }
.ds-stats__number {
    font-family: var(--ds-font-h);
    font-size: 28px;
    font-weight: 800;
    color: var(--ds-black);
    line-height: 1;
}
.ds-stats__label {
    font-family: var(--ds-font-b);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ds-lightest);
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════════════
   STEPS (How It Works)
   ════════════════════════════════════════════════════════════════════════════ */
.ds-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.ds-step {
    background: var(--ds-alt);
    padding: 32px 28px;
    border-left: 1px solid var(--ds-border);
    cursor: default;
}
.ds-step--first { border-left: 2px solid var(--ds-black); }
.ds-step__num {
    font-family: var(--ds-font-h);
    font-size: 64px;
    font-weight: 800;
    color: #ebebea;
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.ds-step:hover .ds-step__num { color: var(--ds-black); }
.ds-step__icon {
    font-size: 22px;
    margin-bottom: 12px;
}
.ds-step__title {
    font-family: var(--ds-font-h);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ds-black);
    margin: 0 0 10px;
    text-transform: uppercase;
}
.ds-step__desc {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: var(--ds-gray);
    line-height: 1.7;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   RECENT PAYOUTS
   ════════════════════════════════════════════════════════════════════════════ */
.ds-payouts__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}
.ds-payouts__live {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ds-payouts__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-green);
    display: inline-block;
    animation: ds-pulse 2s infinite;
}
@keyframes ds-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.ds-payouts__live-text {
    font-family: var(--ds-font-b);
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-green);
    letter-spacing: 0.06em;
}

/* Desktop table */
.ds-payouts__table {
    border: 1px solid var(--ds-border);
}
.ds-payouts__thead {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr;
    background: var(--ds-black);
    padding: 10px 20px;
}
.ds-payouts__thead span {
    font-family: var(--ds-font-b);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--ds-lighter);
}
.ds-payouts__row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f3;
    background: var(--ds-white);
    align-items: center;
}
.ds-payouts__row--last { border-bottom: none; }
.ds-payouts__brand {
    font-family: var(--ds-font-h);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ds-black);
}
.ds-payouts__item {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.ds-payouts__amount {
    font-family: var(--ds-font-h);
    font-size: 18px;
    font-weight: 800;
    color: var(--ds-green);
}
.ds-payouts__days {
    font-family: var(--ds-font-b);
    font-size: 12px;
    color: var(--ds-lighter);
    font-weight: 500;
}

/* Mobile cards — hidden by default */
.ds-payouts__mobile { display: none; }
.ds-payouts__card {
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.ds-payouts__card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ds-payouts__card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ds-payouts__card .ds-payouts__brand { font-size: 14px; }
.ds-payouts__card .ds-payouts__item { font-size: 12px; color: var(--ds-gray); }
.ds-payouts__card .ds-payouts__amount { font-size: 20px; }
.ds-payouts__card .ds-payouts__days { font-size: 11px; color: var(--ds-lightest); }

/* ════════════════════════════════════════════════════════════════════════════
   REQUIREMENTS + PAYOUT RATES
   ════════════════════════════════════════════════════════════════════════════ */
.ds-requirements {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
.ds-requirements__left,
.ds-requirements__right { flex: 1; }

.ds-requirements__list {
    display: flex;
    flex-direction: column;
}
.ds-requirements__item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f3;
    align-items: flex-start;
}
.ds-requirements__icon {
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    width: 20px;
    padding-top: 2px;
}
.ds-requirements__icon--green { color: var(--ds-green); }
.ds-requirements__icon--red   { color: var(--ds-red); }
.ds-requirements__title {
    font-family: var(--ds-font-b);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-black);
    display: block;
    margin-bottom: 3px;
}
.ds-requirements__desc {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: var(--ds-light);
    line-height: 1.5;
}

/* Rates table */
.ds-rates__table {
    border: 1px solid var(--ds-border);
}
.ds-rates__thead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ds-black);
    padding: 10px 20px;
}
.ds-rates__thead span {
    font-family: var(--ds-font-b);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--ds-lighter);
}
.ds-rates__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f3;
    background: var(--ds-white);
}
.ds-rates__row--last { border-bottom: none; }
.ds-rates__range {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.ds-rates__cut {
    font-family: var(--ds-font-h);
    font-size: 20px;
    font-weight: 800;
    color: var(--ds-black);
}
.ds-rates__note {
    font-family: var(--ds-font-b);
    font-size: 11.5px;
    color: var(--ds-lightest);
    margin-top: 14px;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════════════════
   LISTING FORM
   ════════════════════════════════════════════════════════════════════════════ */
.ds-form-section {
    border-bottom: 2px solid var(--ds-black);
}
.ds-form__desc {
    font-family: var(--ds-font-b);
    font-size: 14px;
    color: var(--ds-light);
    margin-bottom: 36px;
    line-height: 1.6;
}
.ds-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ds-form__field--full {
    margin-bottom: 12px;
}
.ds-form__label {
    display: block;
    font-family: var(--ds-font-b);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--ds-lighter);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.ds-form__input,
.ds-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ds-border2);
    background: var(--ds-white);
    font-family: var(--ds-font-b);
    font-size: 14px;
    color: var(--ds-black);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.ds-form__input:focus,
.ds-form__textarea:focus {
    border-color: var(--ds-black);
}
.ds-form__textarea {
    resize: vertical;
}
.ds-form__submit {
    width: 100%;
    margin-top: 12px;
}
.ds-form__note {
    font-family: var(--ds-font-b);
    font-size: 11.5px;
    color: var(--ds-lightest);
    margin-top: 12px;
    text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════════════════════ */
.ds-faq {
    display: flex;
    flex-direction: column;
}
.ds-faq__item {
    border-bottom: 1px solid var(--ds-border);
}
.ds-faq__btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    text-align: left;
    font-family: var(--ds-font-b);
    gap: 24px;
}
.ds-faq__q {
    font-size: 15px;
    font-weight: 600;
    color: var(--ds-black);
    line-height: 1.4;
}
.ds-faq__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 300;
    color: var(--ds-black);
    flex-shrink: 0;
    transition: transform 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}
.ds-faq__item.is-open .ds-faq__icon {
    transform: rotate(45deg);
    background: var(--ds-black);
    border-color: var(--ds-black);
    color: var(--ds-white);
}
.ds-faq__answer {
    padding: 0 0 18px;
}
.ds-faq__answer p {
    font-family: var(--ds-font-b);
    font-size: 14px;
    color: var(--ds-muted);
    line-height: 1.75;
    max-width: 640px;
    margin: 0;
}
.ds-faq__contact {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: var(--ds-lighter);
    margin-top: 24px;
}
.ds-faq__contact a {
    color: var(--ds-black);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--ds-black);
}

/* ════════════════════════════════════════════════════════════════════════════
   CTA BAR
   ════════════════════════════════════════════════════════════════════════════ */
.ds-cta {
    background: var(--ds-black);
    padding: 56px 0;
}
.ds-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ds-cta__heading {
    font-family: var(--ds-font-h);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ds-white);
    margin: 0 0 6px;
    text-transform: uppercase;
}
.ds-cta__sub {
    font-family: var(--ds-font-b);
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hero */
    .ds-hero__inner {
        flex-direction: column;
        min-height: auto;
    }
    .ds-hero__copy {
        padding: 32px 20px 36px;
        order: 2;
    }
    .ds-hero__img-wrap {
        order: 1;
        width: 100%;
        min-height: 260px;
        border-left: none;
    }
    .ds-hero__heading {
        font-size: 52px;
        line-height: 0.92;
    }
    .ds-hero__btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    /* Stats — 2 per row */
    .ds-stats {
        flex-wrap: wrap;
    }
    .ds-stats__item {
        width: 50%;
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--ds-border2);
        padding: 20px 16px;
    }

    /* Steps — single column */
    .ds-steps-grid {
        grid-template-columns: 1fr;
    }
    .ds-step {
        border-left: none;
        border-top: 2px solid var(--ds-black);
    }
    .ds-step--first {
        border-left: none;
        border-top: 2px solid var(--ds-black);
    }

    /* Sections padding */
    .ds-section {
        padding: 48px 20px;
    }

    /* Requirements — stack */
    .ds-requirements {
        flex-direction: column;
        gap: 40px;
    }

    /* Recent payouts — mobile view */
    .ds-payouts__table { display: none; }
    .ds-payouts__mobile { display: flex; flex-direction: column; }

    /* Payout rates table — full width */
    .ds-rates__table { width: 100%; }

    /* Form */
    .ds-form__grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .ds-cta {
        padding: 40px 20px;
    }
    .ds-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Headings */
    .ds-heading {
        font-size: 36px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   SCREEN READER
   ════════════════════════════════════════════════════════════════════════════ */
.ds-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
