@media (max-width: 900px) {
    .tg-vq-container {
        width: min(100% - 36px, 760px);
    }

    .tg-vq-header__inner {
        min-height: 70px;
    }

    .tg-vq-nav {
        display: none;
    }

    .tg-vq-hero {
        min-height: auto;
        padding: 145px 0 84px;
    }

    .tg-vq-hero__grid {
        grid-template-columns: 1fr;
    }

    .tg-vq-hero__copy {
        max-width: 720px;
    }

    .tg-vq-hero__visual {
        display: none;
    }

    .tg-vq-proof__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-vq-proof__grid > div:nth-child(2) {
        border-right: 0;
    }

    .tg-vq-proof__grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--tg-vq-line);
    }

    .tg-vq-quiz-screen {
        padding: 58px 50px;
    }

    .tg-vq-result__grid {
        grid-template-columns: 1fr;
    }

    .tg-vq-alternative {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .tg-vq-content-grid,
    .tg-vq-faq-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tg-vq-section-heading--sticky {
        position: static;
    }

    .tg-vq-factor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-vq-first-grid {
        grid-template-columns: 1fr;
    }

    .tg-vq-final-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tg-vq-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .tg-vq-container {
        width: min(100% - 28px, 600px);
    }

    body.admin-bar .tg-vq-header {
        top: 46px;
    }

    .tg-vq-header__inner {
        min-height: 64px;
        gap: 12px;
    }

    .tg-vq-brand__mark {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .tg-vq-brand strong {
        font-size: 17px;
    }

    .tg-vq-brand small {
        font-size: 8px;
    }

    .tg-vq-exit {
        width: 39px;
        height: 39px;
        min-height: 39px;
        justify-content: center;
        padding: 0;
    }

    .tg-vq-exit span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .tg-vq-hero {
        padding: 125px 0 68px;
    }

    .tg-vq-hero h1 {
        margin-bottom: 22px;
        font-size: clamp(40px, 13vw, 56px);
    }

    .tg-vq-lead {
        font-size: 16px;
    }

    .tg-vq-hero__actions,
    .tg-vq-first-actions,
    .tg-vq-result__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tg-vq-hero__actions .tg-vq-button,
    .tg-vq-first-actions .tg-vq-button,
    .tg-vq-result__actions .tg-vq-button {
        width: 100%;
    }

    .tg-vq-trust-list {
        display: grid;
        gap: 10px;
    }

    .tg-vq-proof__grid > div {
        min-height: 95px;
        flex-direction: column;
        gap: 5px;
        padding: 16px 10px;
        text-align: center;
    }

    .tg-vq-proof strong {
        font-size: 34px;
    }

    .tg-vq-proof span {
        max-width: none;
        font-size: 10px;
    }

    .tg-vq-quiz-section,
    .tg-vq-content-section,
    .tg-vq-types-section,
    .tg-vq-first-section,
    .tg-vq-articles,
    .tg-vq-faq {
        padding: 82px 0;
    }

    .tg-vq-section-heading {
        margin-bottom: 38px;
    }

    .tg-vq-section-heading h2,
    .tg-vq-first-card h2,
    .tg-vq-final-cta h2 {
        font-size: 36px;
    }

    .tg-vq-section-heading p {
        font-size: 15px;
    }

    .tg-vq-quiz {
        min-height: 560px;
        border-radius: 23px;
    }

    .tg-vq-quiz::before {
        display: none;
    }

    .tg-vq-quiz-screen {
        min-height: 560px;
        padding: 42px 22px;
    }

    .tg-vq-welcome-icon {
        width: 67px;
        height: 67px;
        border-radius: 22px;
    }

    .tg-vq-quiz-welcome h3 {
        font-size: 33px;
    }

    .tg-vq-fieldset legend {
        font-size: 30px;
    }

    .tg-vq-option {
        min-height: 76px;
        padding: 14px;
        gap: 13px;
    }

    .tg-vq-quiz-nav {
        position: sticky;
        z-index: 5;
        bottom: 0;
        margin: 29px -10px -25px;
        padding: 13px 10px 10px;
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 76%, rgba(255, 255, 255, 0));
    }

    .tg-vq-quiz-nav .tg-vq-button {
        min-height: 48px;
        padding: 11px 16px;
        font-size: 12px;
    }

    .tg-vq-result__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .tg-vq-result__hero {
        grid-template-columns: 1fr;
    }

    .tg-vq-result__icon {
        width: 92px;
        height: 92px;
        border-radius: 27px;
    }

    .tg-vq-result__icon svg {
        width: 60px;
        height: 60px;
    }

    .tg-vq-result__hero h3 {
        font-size: 34px;
    }

    .tg-vq-process-list article {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 15px;
    }

    .tg-vq-type-cards,
    .tg-vq-factor-grid,
    .tg-vq-article-grid {
        grid-template-columns: 1fr;
    }

    .tg-vq-type-card,
    .tg-vq-type-card:last-child {
        grid-column: auto;
        min-height: 500px;
        padding: 25px;
    }

    .tg-vq-type-card > a {
        right: 25px;
        left: 25px;
    }

    .tg-vq-factor-grid article {
        min-height: 210px;
    }

    .tg-vq-first-card,
    .tg-vq-checklist {
        padding: 33px 24px;
        border-radius: 22px;
    }

    .tg-vq-article-grid > a {
        min-height: 260px;
    }

    .tg-vq-accordion summary {
        font-size: 19px;
    }

    .tg-vq-final-cta {
        padding: 68px 0;
    }

    .tg-vq-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tg-vq-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-vq-site *,
    .tg-vq-site *::before,
    .tg-vq-site *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .tg-vq-header,
    .tg-vq-hero,
    .tg-vq-proof,
    .tg-vq-content-section,
    .tg-vq-types-section,
    .tg-vq-first-section,
    .tg-vq-articles,
    .tg-vq-faq,
    .tg-vq-final-cta,
    .tg-vq-footer,
    .tg-vq-quiz-welcome,
    .tg-vq-question-screen,
    .tg-vq-result__actions {
        display: none !important;
    }

    .tg-vq-quiz-section,
    .tg-vq-quiz,
    .tg-vq-result {
        display: block !important;
        min-height: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

/* Önálló PHP-változat */
html {
    scroll-behavior: smooth;
    background: var(--tg-vq-ivory);
}

body.tg-vq-takeover,
body.tg-vq-subpage {
    margin: 0;
    min-width: 320px;
    background: var(--tg-vq-ivory);
}

.tg-vq-subpage .tg-vq-header {
    position: relative;
    background: var(--tg-vq-ink);
}

.tg-vq-subpage-main {
    min-height: 62vh;
    padding: 82px 0 96px;
}

.tg-vq-legal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 64px;
    align-items: start;
}

.tg-vq-legal-copy {
    max-width: 790px;
}

.tg-vq-legal-copy h1 {
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 74px);
}

.tg-vq-legal-copy h2 {
    margin: 48px 0 14px;
    font-size: clamp(28px, 3vw, 40px);
}

.tg-vq-legal-copy h3 {
    margin: 32px 0 10px;
    font-size: 23px;
}

.tg-vq-legal-copy p,
.tg-vq-legal-copy li {
    color: var(--tg-vq-ink-soft);
}

.tg-vq-legal-copy a {
    color: var(--tg-vq-wine);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tg-vq-legal-copy ul {
    padding-left: 22px;
}

.tg-vq-legal-meta {
    margin-bottom: 34px;
    color: var(--tg-vq-wine);
    font-weight: 700;
    letter-spacing: .02em;
}

.tg-vq-legal-aside {
    position: sticky;
    top: 28px;
    padding: 28px;
    border: 1px solid var(--tg-vq-line);
    border-radius: var(--tg-vq-radius-md);
    background: var(--tg-vq-white);
    box-shadow: var(--tg-vq-shadow-soft);
}

.tg-vq-legal-aside h2 {
    margin-bottom: 16px;
    font-size: 25px;
}

.tg-vq-legal-aside a {
    display: block;
    padding: 8px 0;
    color: var(--tg-vq-wine);
    font-weight: 700;
}

.tg-vq-notice {
    margin: 30px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--tg-vq-gold);
    border-radius: 0 14px 14px 0;
    background: var(--tg-vq-sand);
}

.tg-vq-error-page {
    display: grid;
    min-height: 72vh;
    place-items: center;
    padding: 80px 24px;
    text-align: center;
}

.tg-vq-error-page strong {
    display: block;
    color: var(--tg-vq-wine);
    font-family: var(--tg-vq-serif);
    font-size: clamp(84px, 18vw, 180px);
    line-height: .8;
}

.tg-vq-error-page h1 {
    margin: 28px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
}

@media (max-width: 860px) {
    .tg-vq-legal-shell {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tg-vq-legal-aside {
        position: static;
    }
}
