html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
img, svg, video, canvas, iframe { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
code { overflow-wrap: anywhere; }
.pg-brand .brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pg-brand { min-width: 0; }
.pg-cta { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }

@media (max-width: 900px) {
    html { overflow-x: clip; }
    body { overflow-wrap: break-word; word-wrap: break-word; }
    .pg-main h1, .legal-card h1, .oferta-container h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.2; }
    .pg-main h2, .legal-card h2, .oferta-container h2 { font-size: clamp(19px, 5.4vw, 24px); line-height: 1.25; }
    .pg-main table, .legal-card table, .oferta-container table, .tool-container table, .adm-view table {
        display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .pg-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .pg-foot a { margin: 0; padding: 10px 12px; }
    .pg-foot > div { flex: 0 0 100%; margin-top: 4px !important; }
}

@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
    select, textarea { font-size: 16px !important; min-height: 44px; }
    .btn-primary, .btn-small, .pg-cta, .pl-btn, .pl-chip { min-height: 44px; }
    .btn-small { padding-top: 9px; padding-bottom: 9px; }
    .pg-nav a { min-height: 40px; display: inline-flex; align-items: center; }
    .theme-btn { min-width: 36px; min-height: 36px; }
    input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .pg-main { padding-left: 14px; padding-right: 14px; }
    .legal-card, .oferta-container { margin-left: 12px; margin-right: 12px; }
    .modal, .pl-modal-box { max-width: calc(100vw - 20px); }
    .btn-primary { width: auto; max-width: 100%; }
}

@media (max-width: 380px) {
    .pg-top-in { padding: 8px 12px; gap: 6px 8px; }
    .pg-brand .brand-text { font-size: 15px; }
    .pg-brand .brand-img { width: 36px; height: 36px; }
    .pg-cta { padding: 8px 14px; }
}

.htc-crumbs { max-width: 1100px; margin: 14px auto 6px; padding: 0 16px; font-size: 13.5px; line-height: 1.4; }
.htc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.htc-crumbs ol::-webkit-scrollbar { display: none; }
.htc-crumbs li { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--text-muted); }
.htc-crumbs li + li::before { content: ''; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid var(--text-dim); border-right: 1.5px solid var(--text-dim); transform: rotate(45deg); }
.htc-crumbs a { color: var(--primary); text-decoration: none; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; }
.htc-crumbs a:hover { background: var(--primary-soft); }
.htc-crumbs [aria-current] span { color: var(--text); font-weight: 600; }
.pg-main .htc-crumbs, .oferta-container .htc-crumbs, .status-wrap .htc-crumbs, .docs-main .htc-crumbs { padding: 0; margin: 0 0 14px; max-width: none; }
.tool-landing > .htc-crumbs { width: 100%; max-width: 960px; padding: 0 24px; margin: 16px auto 0; box-sizing: border-box; }
.htc-faq { max-width: 960px; margin: 56px auto; padding: 0 20px; box-sizing: border-box; }
.pg-main .htc-faq { padding: 0; margin: 40px auto 24px; }
.htc-faq h2 { font-size: clamp(22px, 5vw, 30px); margin: 0 0 18px; color: var(--text); }
.htc-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.htc-faq-i { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.htc-faq-i h3 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; color: var(--text); }
.htc-faq-i p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .htc-crumbs { margin-top: 10px; }
    .tool-landing > .htc-crumbs { padding: 0 16px; }
    .htc-faq { margin: 36px auto; padding: 0 16px; }
    .htc-faq-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .htc-faq-i { padding: 16px; }
}
