/* © ФОП Татарников О.Ю. | +380504468872 | https://mambursoft.org.ua */
/**
 * Bevend Public Site — стилі публічного сайту
 *
 * Всі класи з префіксом td-pub-* для уникнення конфліктів з кабінетом.
 * Використовує CSS-змінні з main.css (:root та html.dark).
 * Шрифти: Manrope (--font-display) для заголовків, Inter (--font-body) для тексту.
 *
 * Responsive breakpoints:
 *   - Mobile:  360px – 767px
 *   - Tablet:  768px – 1023px
 *   - Desktop: 1024px+
 *
 * Requirements: 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 5.1, 5.2, 5.3, 5.6, 5.7,
 *               13.1, 13.2, 13.5
 */


/* ============================================================
   0. КНОПКИ (td-btn) — спільні для публічного сайту
   ============================================================ */

/* Box-sizing для всіх публічних елементів */
.td-pub-main *,
.td-pub-main *::before,
.td-pub-main *::after,
.td-pub-header *,
.td-pub-footer * {
    box-sizing: border-box;
}

.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.td-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.td-btn--primary {
    background: var(--brand);
    color: #1a2332;
    border-color: var(--brand);
    font-weight: 600;
}

.td-btn--primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.15);
}

.td-btn--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.td-btn--outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.td-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ============================================================
   1. ОСНОВНИЙ LAYOUT (td-pub-main)
   ============================================================ */

.td-pub-main {
    flex: 1;
    min-height: 0;
    font-family: var(--font-body);
}


/* ============================================================
   2. ХЕДЕР (td-pub-header)
   Sticky, z-index: 100, hamburger на мобільних
   Requirements: 17.1–17.7, 6.1, 6.4
   ============================================================ */

.td-pub-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.td-pub-header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Коли мобільне меню відкрите — прибрати backdrop-filter,
   щоб position: fixed дочірнього меню працював відносно
   viewport, а не хедера (backdrop-filter створює
   новий containing block для fixed елементів) */
.td-pub-header--menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-card, #fff);
}

html.dark .td-pub-header--menu-open {
    background: var(--bg-card, #1E1E1E);
}

.td-pub-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

/* Логотип */
.td-pub-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.td-pub-header__logo i {
    background: var(--crystal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
}

.td-pub-header__logo:hover {
    color: var(--brand-dark);
}

/* Десктопна навігація */
.td-pub-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.td-pub-header__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.td-pub-header__nav-link:hover,
.td-pub-header__nav-link:focus {
    color: var(--brand);
    background: var(--brand-bg);
}

.td-pub-header__nav-link--active {
    color: var(--brand);
    font-weight: 600;
}

/* Права частина хедера */
.td-pub-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.td-pub-header__cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-pub-header__cta {
    font-size: 13px;
    padding: 8px 16px;
}

/* Перемикач мови */
.td-pub-header__lang-switcher {
    position: relative;
}

.td-pub-header__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.td-pub-header__lang-btn:hover {
    border-color: var(--brand);
}

.td-pub-header__lang-flag {
    font-size: 18px;
    line-height: 1;
}

.td-pub-header__lang-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.td-pub-header__lang-chevron--open {
    transform: rotate(180deg);
}

.td-pub-header__lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 4px;
    margin: 0;
    z-index: 110;
}

.td-pub-header__lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
    min-height: 44px;
}

.td-pub-header__lang-option:hover {
    background: var(--brand-bg);
    color: var(--brand);
}

.td-pub-header__lang-option--active {
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-bg);
}

/* Перемикач теми */
.td-pub-header__theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.2s ease;
}

.td-pub-header__theme-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-bg);
}

/* Hamburger-кнопка (< 768px) */
.td-pub-header__hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    font-size: 20px;
    transition: all 0.2s ease;
}

.td-pub-header__hamburger:hover {
    background: var(--brand-bg);
    color: var(--brand);
}

/* Іконка входу/кабінету — видима тільки на мобільних (<768px) */
.td-pub-header__login-icon {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--brand);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: auto;
    white-space: nowrap;
}

.td-pub-header__login-icon:hover {
    background: var(--brand-bg);
    color: var(--brand-dark);
}

.td-pub-header__login-text {
    font-size: 13px;
    font-weight: 500;
}

/* Мобільне меню (overlay) */
.td-pub-header__mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 99;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Анімація мобільного меню */
.td-pub-header__mobile-menu--enter {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.td-pub-header__mobile-menu--enter-start {
    opacity: 0;
    transform: translateY(-8px);
}
.td-pub-header__mobile-menu--enter-end {
    opacity: 1;
    transform: translateY(0);
}
.td-pub-header__mobile-menu--leave {
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.td-pub-header__mobile-menu--leave-start {
    opacity: 1;
    transform: translateY(0);
}
.td-pub-header__mobile-menu--leave-end {
    opacity: 0;
    transform: translateY(-8px);
}

.td-pub-header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-pub-header__mobile-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px;
}

.td-pub-header__mobile-link:hover {
    background: var(--brand-bg);
    color: var(--brand);
}

/* Мобільний перемикач мови */
.td-pub-header__mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.td-pub-header__mobile-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.td-pub-header__mobile-lang:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.td-pub-header__mobile-lang--active {
    background: var(--brand-bg);
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}

/* Мобільний перемикач теми */
.td-pub-header__mobile-theme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    width: fit-content;
}

.td-pub-header__mobile-theme:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Мобільні CTA */
.td-pub-header__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.td-pub-header__mobile-cta .td-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
}


/* ============================================================
   3. ФУТЕР (td-pub-footer)
   Requirements: 15.1–15.7, 11.1
   ============================================================ */

.td-pub-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.td-pub-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.td-pub-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.td-pub-footer__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Бренд у футері */
.td-pub-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
}

.td-pub-footer__brand i {
    background: var(--crystal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навігація футера */
.td-pub-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
}

.td-pub-footer__link {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 0;
}

.td-pub-footer__link:hover {
    color: var(--brand);
}

.td-pub-footer__heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.td-pub-footer__heading-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-pub-footer__heading-link:hover {
    color: var(--brand);
}

/* Контакти */
.td-pub-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-pub-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-pub-footer__contact-link:hover {
    color: var(--brand);
}

.td-pub-footer__contact-link i {
    width: 16px;
    text-align: center;
    color: var(--brand);
    flex-shrink: 0;
}

/* Перемикач мови у футері — простий список */
.td-pub-footer__langs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.td-pub-footer__lang {
    display: inline;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
    padding: 0;
    min-height: auto;
    background: none;
}

.td-pub-footer__lang:hover {
    color: var(--brand);
}

.td-pub-footer__lang--active {
    color: var(--brand);
    font-weight: 600;
    background: none;
    border: none;
}

.td-pub-footer__lang-sep {
    color: var(--text-muted);
    margin: 0 6px;
}

/* Portmone notice */
.td-pub-footer__portmone {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}

.td-pub-footer__portmone-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Copyright */
.td-pub-footer__bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.td-pub-footer__copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}



/* ============================================================
   4. HERO-СЕКЦІЯ (td-pub-hero)
   Requirements: 7.1
   ============================================================ */

.td-pub-hero {
    background: linear-gradient(
        160deg,
        var(--bg, #f5f7fa) 0%,
        rgba(149, 193, 77, 0.06) 40%,
        rgba(149, 193, 77, 0.12) 100%
    );
    border-bottom: 1px solid var(--border);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

/* Декоративне коло на фоні */
.td-pub-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(149, 193, 77, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.td-pub-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(149, 193, 77, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.td-pub-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Логотип — іконка + назва */
.td-pub-hero__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
    padding: 8px 20px;
    border-radius: 24px;
    background: rgba(149, 193, 77, 0.08);
    border: 1px solid rgba(149, 193, 77, 0.15);
}

.td-pub-hero__logo i {
    font-size: 24px;
    background: var(--crystal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Заголовок */
.td-pub-hero__title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

/* Підзаголовок */
.td-pub-hero__subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 16px;
    max-width: 600px;
}

/* Опис */
.td-pub-hero__desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 560px;
    text-align: center;
}

/* Темна тема */
html.dark .td-pub-hero {
    background: linear-gradient(
        160deg,
        var(--bg, #121212) 0%,
        rgba(149, 193, 77, 0.04) 40%,
        rgba(149, 193, 77, 0.08) 100%
    );
}

html.dark .td-pub-hero__logo {
    background: rgba(149, 193, 77, 0.1);
    border-color: rgba(149, 193, 77, 0.2);
}

.td-pub-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--brand);
    color: #1a2332;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.td-pub-hero__cta:hover {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.25);
    transform: translateY(-1px);
}


/* ============================================================
   5. СЕКЦІЇ КОНТЕНТУ (td-pub-section)
   Requirements: 7.2–7.7
   ============================================================ */

.td-pub-section {
    padding: 64px 0;
}

.td-pub-section:nth-child(even) {
    background: var(--bg);
}

.td-pub-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.td-pub-section__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    text-align: center;
    letter-spacing: -0.3px;
}

.td-pub-section__text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 16px;
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.td-pub-section__text:last-of-type {
    margin-bottom: 32px;
}

/* Truncate з розгортанням для довгих текстових блоків */
.td-pub-section__expandable {
    max-width: 800px;
    margin: 0 auto 32px;
}

.td-pub-section__expandable-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow: hidden;
    position: relative;
}

.td-pub-section__expandable-text--collapsed {
    max-height: 120px;
}

.td-pub-section__expandable-text--collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(
        transparent,
        var(--bg, #f5f7fa)
    );
    pointer-events: none;
}

html.dark .td-pub-section__expandable-text--collapsed::after {
    background: linear-gradient(
        transparent,
        var(--bg, #121212)
    );
}

/* Чергування фону секцій — градієнт для collapsed */
.td-pub-section:nth-child(even)
    .td-pub-section__expandable-text--collapsed::after {
    background: linear-gradient(
        transparent,
        var(--bg, #f5f7fa)
    );
}

.td-pub-section__expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--brand);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.td-pub-section__expand-btn:hover {
    opacity: 0.8;
}

.td-pub-section__expand-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.td-pub-section__expand-btn--open i {
    transform: rotate(180deg);
}


/* ============================================================
   6. КАРТКИ (td-pub-card)
   Requirements: 7.6
   ============================================================ */

.td-pub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.td-pub-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
    .td-pub-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

.td-pub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--crystal);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.td-pub-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.15);
    transform: translateY(-2px);
}

.td-pub-card:hover::before {
    opacity: 1;
}

.td-pub-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--crystal-subtle);
    color: var(--brand);
    font-size: 20px;
    margin-bottom: 16px;
}

.td-pub-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}

.td-pub-card__text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   7. FAQ ACCORDION (td-pub-faq)
   Requirements: 14.2
   ============================================================ */

.td-pub-faq {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-pub-faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.td-pub-faq__item:hover {
    border-color: var(--brand);
}

.td-pub-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.2s ease;
    gap: 12px;
    min-height: 44px;
}

.td-pub-faq__question:hover {
    color: var(--brand);
}

.td-pub-faq__icon {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    width: 20px;
    text-align: center;
}

.td-pub-faq__icon--open {
    transform: rotate(180deg);
}

.td-pub-faq__answer {
    padding: 0 20px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.td-pub-faq__answer p {
    margin: 0 0 12px;
}

.td-pub-faq__answer p:last-child {
    margin-bottom: 0;
}

/* Категорії FAQ */
.td-pub-faq__category {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 16px;
}

.td-pub-faq__category:first-child {
    margin-top: 0;
}


/* ============================================================
   8. ФОРМА ЗВОРОТНОГО ЗВ'ЯЗКУ (td-pub-contact-form)
   Requirements: 10.5, 16.3
   ============================================================ */

.td-pub-contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.td-pub-contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.td-pub-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-pub-contact-form__label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.td-pub-contact-form__label span[aria-hidden] {
    color: var(--danger);
}

.td-pub-contact-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.td-pub-contact-form__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(149, 193, 77, 0.12);
}

.td-pub-contact-form__input--error {
    border-color: var(--danger);
}

.td-pub-contact-form__input--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.td-pub-contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.td-pub-contact-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.td-pub-contact-form__error-text {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

/* Повідомлення про успіх */
.td-pub-contact-form__success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(106, 171, 53, 0.08);
    border: 1px solid rgba(106, 171, 53, 0.2);
    border-radius: 8px;
    color: var(--success);
    font-size: 15px;
    font-weight: 500;
}

.td-pub-contact-form__success i {
    font-size: 20px;
}

/* Повідомлення про помилку */
.td-pub-contact-form__error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
}

.td-pub-contact-form__error i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Кнопка відправки */
.td-pub-contact-form__actions {
    padding-top: 8px;
}

.td-pub-contact-form__submit {
    min-width: 160px;
    min-height: 48px;
    font-size: 15px;
}

.td-pub-contact-form__submit--loading {
    opacity: 0.7;
    cursor: wait;
}


/* ============================================================
   9. ХЛІБНІ КРИХТИ (td-pub-breadcrumbs)
   Requirements: 8.7
   ============================================================ */

.td-pub-breadcrumbs {
    padding: 8px 24px;
    position: sticky;
    top: 64px;
    z-index: 90;
    font-size: 12px;
}

.td-pub-breadcrumbs__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.td-pub-breadcrumbs__list {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    gap: 8px;
    list-style: none;
    margin: 0;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.td-pub-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.td-pub-breadcrumbs__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-pub-breadcrumbs__link:hover {
    color: var(--brand);
}

.td-pub-breadcrumbs__current {
    color: var(--text);
    font-weight: 500;
}

.td-pub-breadcrumbs__separator {
    color: var(--border-hover);
    font-size: 12px;
}


/* ============================================================
   10. ВИРОБНИКИ / АВТОМАТИ (td-pub-machines)
   Requirements: 10.1–10.4
   ============================================================ */

.td-pub-machines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.td-pub-machine-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
    .td-pub-machine-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

.td-pub-machine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--crystal);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.td-pub-machine-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.15);
    transform: translateY(-2px);
}

.td-pub-machine-card:hover::before {
    opacity: 1;
}

.td-pub-machine-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--crystal-subtle);
    color: var(--brand);
    font-size: 24px;
    margin-bottom: 16px;
}

.td-pub-machine-card__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}

.td-pub-machine-card__text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}


/* ============================================================
   11. СТОРІНКА ПОМИЛКИ (td-pub-error-page)
   ============================================================ */

.td-pub-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    min-height: 50vh;
}

.td-pub-error-page__code {
    font-family: var(--font-display);
    font-size: 96px;
    font-weight: 800;
    background: var(--crystal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0 0 16px;
}

.td-pub-error-page__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.td-pub-error-page__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px;
}

.td-pub-error-page__btn {
    min-height: 48px;
    font-size: 15px;
}



/* ============================================================
   12. RESPONSIVE — MOBILE (360px – 767px)
   Requirements: 4.1, 4.2, 4.3, 4.6
   ============================================================ */

@media (max-width: 767px) {
    /* Хедер: hamburger видимий, навігація та дії приховані */
    .td-pub-header__nav {
        display: none;
    }

    .td-pub-header__actions {
        display: none;
    }

    /* Іконка входу — видима на мобільних */
    .td-pub-header__login-icon {
        display: flex;
    }

    .td-pub-header__hamburger {
        display: flex;
    }

    .td-pub-header__inner {
        padding: 0 16px;
        height: 56px;
    }

    .td-pub-header__mobile-menu {
        top: 56px;
    }

    /* Hero — зменшені розміри */
    .td-pub-hero {
        padding: 40px 0 32px;
    }

    .td-pub-hero__inner {
        padding: 0 16px;
    }

    .td-pub-hero__logo {
        font-size: 22px;
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .td-pub-hero__logo i {
        font-size: 20px;
    }

    .td-pub-hero__title {
        font-size: 28px;
    }

    .td-pub-hero__subtitle {
        font-size: 15px;
    }

    .td-pub-hero__desc {
        font-size: 14px;
    }

    /* Секції — зменшений padding */
    .td-pub-section {
        padding: 40px 0;
    }

    .td-pub-section__inner {
        padding: 0 16px;
    }

    .td-pub-section__title {
        font-size: 24px;
    }

    .td-pub-section__text {
        font-size: 15px;
    }

    /* Картки — 1 колонка */
    .td-pub-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .td-pub-card {
        padding: 24px 20px;
    }

    /* Виробники — 1 колонка */
    .td-pub-machines {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* FAQ */
    .td-pub-faq__question {
        font-size: 15px;
        padding: 16px;
    }

    .td-pub-faq__answer {
        padding: 0 16px 16px;
        font-size: 14px;
    }

    /* Форма */
    .td-pub-contact-form__submit {
        width: 100%;
    }

    /* Футер — вертикальне розташування */
    .td-pub-footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .td-pub-footer__nav {
        grid-template-columns: 1fr;
    }

    .td-pub-footer__inner {
        padding: 32px 16px 20px;
    }

    /* Хлібні крихти */
    .td-pub-breadcrumbs {
        top: 56px;
        font-size: 11px;
        padding: 6px 16px;
    }

    .td-pub-breadcrumbs__list {
        padding: 3px 10px;
        gap: 6px;
        font-size: 11px;
    }

    /* Сторінка помилки */
    .td-pub-error-page {
        padding: 48px 16px;
    }

    .td-pub-error-page__code {
        font-size: 64px;
    }

    .td-pub-error-page__title {
        font-size: 20px;
    }

    /* Touch targets — мінімум 44×44px (Req 4.6) */
    .td-pub-header__mobile-link {
        min-height: 48px;
    }

    .td-pub-faq__question {
        min-height: 48px;
    }

    .td-pub-footer__link {
        padding: 6px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .td-pub-footer__contact-link {
        min-height: 44px;
    }
}


/* ============================================================
   13. RESPONSIVE — TABLET (768px – 1023px)
   Requirements: 4.2, 4.4
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Хедер: навігація видима, але компактніша */
    .td-pub-header__hamburger {
        display: none;
    }

    .td-pub-header__nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .td-pub-header__cta {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Hero */
    .td-pub-hero__title {
        font-size: 36px;
    }

    .td-pub-hero__subtitle {
        font-size: 16px;
    }

    /* Секції */
    .td-pub-section__title {
        font-size: 28px;
    }

    /* Картки — 2 колонки */
    .td-pub-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Виробники — 2 колонки */
    .td-pub-machines {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Футер — 2 колонки */
    .td-pub-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}


/* ============================================================
   14. RESPONSIVE — DESKTOP (1024px+)
   Requirements: 4.4
   ============================================================ */

@media (min-width: 1024px) {
    .td-pub-header__hamburger {
        display: none;
    }

    /* Картки — 3 колонки */
    .td-pub-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Виробники — 3 колонки */
    .td-pub-machines {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   15. ТЕМНА ТЕМА (html.dark)
   Requirements: 5.1, 5.2
   ============================================================ */

/* --- Хедер --- */
html.dark .td-pub-header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .td-pub-header__lang-btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

html.dark .td-pub-header__lang-dropdown {
    background: #1E1E1E;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html.dark .td-pub-header__lang-option:hover {
    background: rgba(149, 193, 77, 0.1);
}

html.dark .td-pub-header__lang-option--active {
    background: rgba(149, 193, 77, 0.1);
}

html.dark .td-pub-header__theme-btn {
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .td-pub-header__theme-btn:hover {
    border-color: var(--brand);
    background: rgba(149, 193, 77, 0.1);
}

/* Мобільне меню — темна тема */
html.dark .td-pub-header__mobile-menu {
    background: #121212;
}

html.dark .td-pub-header__mobile-link:hover {
    background: rgba(149, 193, 77, 0.1);
}

html.dark .td-pub-header__mobile-lang {
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .td-pub-header__mobile-lang--active {
    background: rgba(149, 193, 77, 0.1);
    border-color: var(--brand);
}

html.dark .td-pub-header__mobile-theme {
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .td-pub-header__mobile-cta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* --- Кнопки --- */
html.dark .td-btn {
    border-color: rgba(255, 255, 255, 0.15);
    background: #2a2a2a;
    color: var(--text);
}

html.dark .td-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

html.dark .td-btn--primary {
    background: var(--brand);
    color: #1a2332;
    border-color: var(--brand);
}

html.dark .td-btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

html.dark .td-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

html.dark .td-btn--outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* --- Hero --- (стилі в секції 4) */

/* --- Секції --- */
html.dark .td-pub-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Картки --- */
html.dark .td-pub-card {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.1);
}

/* --- Виробники --- */
html.dark .td-pub-machine-card {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-machine-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(149, 193, 77, 0.1);
}

/* --- FAQ --- */
html.dark .td-pub-faq__item {
    background: #1E1E1E;
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-faq__item:hover {
    border-color: var(--brand);
}

/* --- Форма --- */
html.dark .td-pub-contact-form__input {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

html.dark .td-pub-contact-form__input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(149, 193, 77, 0.15);
}

html.dark .td-pub-contact-form__input--error {
    border-color: var(--danger);
}

html.dark .td-pub-contact-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0AEC0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

html.dark .td-pub-contact-form__success {
    background: rgba(106, 171, 53, 0.12);
    border-color: rgba(106, 171, 53, 0.25);
}

html.dark .td-pub-contact-form__error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

/* --- Футер --- */
html.dark .td-pub-footer {
    background: #1E1E1E;
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-footer__portmone {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark .td-pub-footer__lang {
    color: var(--text-secondary);
}

html.dark .td-pub-footer__lang--active {
    color: var(--brand);
}

/* --- Хлібні крихти --- */
html.dark .td-pub-breadcrumbs__list {
    background: #1E1E1E;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

html.dark .td-pub-breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   16. СТОРІНКА КОНТАКТІВ (td-pub-contacts)
   ============================================================ */

.td-pub-contacts__info {
    margin-bottom: 40px;
}

.td-pub-contacts__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-style: normal;
}

.td-pub-contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.td-pub-contacts__item > i {
    width: 20px;
    text-align: center;
    color: var(--brand);
    font-size: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.td-pub-contacts__label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.td-pub-contacts__link {
    color: var(--text);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.td-pub-contacts__link:hover {
    color: var(--brand);
}

.td-pub-contacts__map {
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.td-pub-contacts__map iframe {
    display: block;
}

.td-pub-contacts__form-section {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 767px) {
    .td-pub-contacts__map iframe {
        height: 280px;
    }
}


/* ============================================================
   16.5. ЮРИДИЧНІ ДОКУМЕНТИ (td-pub-legal)
   ============================================================ */

.td-pub-legal {
    max-width: 800px;
    margin: 0 auto;
}

.td-pub-legal h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}

.td-pub-legal p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}

.td-pub-legal p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   17. УТИЛІТИ
   ============================================================ */

/* Приховування елементів до ініціалізації Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Скрін-рідер only */
.td-pub-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;
}

/* Текст по центру */
.td-pub-text-center {
    text-align: center;
}

/* Градієнтний текст */
.td-pub-gradient-text {
    background: var(--crystal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================
   18. ФОРМА — OVERLAY УСПІХУ (td-pub-contact-form__success-overlay)
   ============================================================ */

.td-pub-contact-form__success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.td-pub-contact-form__success-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 40px;
    background: var(--bg-card, #fff);
    border: 1px solid rgba(106, 171, 53, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: var(--success, #6aab35);
    font-size: 18px;
    font-weight: 600;
}

.td-pub-contact-form__success-card i {
    font-size: 24px;
}

html.dark .td-pub-contact-form__success-overlay {
    background: rgba(0, 0, 0, 0.5);
}

html.dark .td-pub-contact-form__success-card {
    background: #1E1E1E;
    border-color: rgba(106, 171, 53, 0.4);
}


/* ============================================================
   19. КАРТА ПОКРИТТЯ (td-pub-coverage-map)
   ============================================================ */

.td-pub-coverage-map {
    margin-top: 24px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Карта покриття — z-index нижче хедера (z-index: 100) */
.td-pub-coverage-map .leaflet-top,
.td-pub-coverage-map .leaflet-bottom {
    z-index: 80 !important;
}
.td-pub-coverage-map .leaflet-pane {
    z-index: 40 !important;
}
.td-pub-coverage-map .leaflet-popup-pane {
    z-index: 70 !important;
}

.td-pub-map-marker {
    background: transparent !important;
    border: none !important;
}

html.dark .td-pub-coverage-map {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.td-pub-coverage-pay-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    background: #95C14D;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.td-pub-coverage-pay-btn:hover {
    background: #7aa33e;
}


/* ============================================================
   20. ІЛЮСТРАЦІЇ СЕКЦІЙ (td-pub-section__illustration)
   Зображення з bevend.com.ua
   ============================================================ */

.td-pub-section__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px auto;
    max-width: 480px;
    height: 200px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.td-pub-section__illustration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .td-pub-section__illustration {
        height: 140px;
        max-width: 100%;
        margin: 20px auto;
    }
}


/* ============================================================
   21. СЕКЦІЯ СТАТИСТИКИ (td-pub-stats)
   ============================================================ */

.td-pub-stats {
    padding: 48px 0;
    background: linear-gradient(135deg, rgba(149,193,77,0.08) 0%, rgba(149,193,77,0.02) 100%);
    border-bottom: 1px solid var(--border);
}
.td-pub-stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}
.td-pub-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.td-pub-stats__number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 8px;
}
.td-pub-stats__label {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}
html.dark .td-pub-stats {
    background: linear-gradient(135deg, rgba(149,193,77,0.06) 0%, rgba(149,193,77,0.02) 100%);
    border-bottom-color: rgba(255,255,255,0.1);
}
@media (max-width: 767px) {
    .td-pub-stats__inner {
        gap: 32px;
    }
    .td-pub-stats__number {
        font-size: 36px;
    }
    .td-pub-stats__label {
        font-size: 14px;
    }
}


/* ═══ Auth Modal ═══ */
.td-auth-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.td-auth-card {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    padding: 2rem;
    width: 100%; max-width: 380px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid var(--border, #e5e7eb);
}
.td-auth-card__close {
    position: absolute; top: 1rem; right: 1rem;
    border: none; background: none;
    color: var(--text-muted, #6b7280);
    font-size: 1.1rem; cursor: pointer;
}
.td-auth-card__close:hover { color: var(--text, #1a1a2e); }
.td-auth-card__logo {
    text-align: center; font-family: var(--font-display, 'Manrope', sans-serif);
    font-size: 1.5rem; font-weight: 800;
    color: var(--brand, #95C14D);
    margin-bottom: 0.5rem;
}
.td-auth-card__logo i { margin-right: 0.3rem; }
.td-auth-card__title {
    text-align: center; font-size: 1.1rem; font-weight: 700;
    color: var(--text, #1a1a2e); margin: 0 0 1.25rem;
}
.td-auth-card__error {
    background: rgba(239,68,68,0.08); color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px; padding: 0.5rem 0.75rem;
    font-size: 0.82rem; margin-bottom: 1rem;
}
.td-auth-card__field {
    margin-bottom: 1rem;
}
.td-auth-card__field label {
    display: block; font-size: 0.78rem; font-weight: 500;
    color: var(--text-muted, #6b7280); margin-bottom: 0.3rem;
}
.td-auth-card__field input {
    width: 100%; padding: 0.6rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px; font-size: 0.9rem;
    background: var(--bg, #f5f7fa);
    color: var(--text, #1a1a2e);
    outline: none; transition: border-color 0.2s;
}
.td-auth-card__field input:focus {
    border-color: var(--brand, #95C14D);
}
.td-auth-card__submit {
    width: 100%; padding: 0.65rem;
    font-size: 0.9rem; font-weight: 600;
    border-radius: 8px; margin-top: 0.5rem;
}
.td-auth-card__footer {
    text-align: center; margin-top: 1rem;
    font-size: 0.8rem;
}
.td-auth-card__footer a {
    color: var(--brand, #95C14D);
    text-decoration: none;
}
.td-auth-card__footer a:hover { text-decoration: underline; }
html.dark .td-auth-card {
    background: var(--bg-card, #1E1E1E);
    border-color: rgba(255,255,255,0.1);
}
html.dark .td-auth-card__field input {
    background: var(--bg, #121212);
    border-color: rgba(255,255,255,0.1);
}

.td-auth-card__success {
    background: rgba(106,171,53,0.08); color: #6aab35;
    border: 1px solid rgba(106,171,53,0.2);
    border-radius: 8px; padding: 0.5rem 0.75rem;
    font-size: 0.82rem; margin-bottom: 1rem;
}
.td-auth-card__link {
    background: none; border: none; color: var(--brand, #95C14D);
    cursor: pointer; font-size: 0.8rem; text-decoration: none;
    padding: 0;
}
.td-auth-card__link:hover { text-decoration: underline; }
