:root {
    --color-primary: #8b6f47;
    --color-secondary: #a0826d;
    --color-accent: #d4af37;
    --color-bg: #faf8f4;
    --color-text: #2c2418;
    --color-muted: #5c4e3a;
    --color-border: #d9cfc0;
    --color-surface: #f3eee6;
    --color-dark: #1f1810;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
    --tdp-header-h: 72px;
    --tdp-page-w: 1120px;
    --space-xs: 0.35rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --radius: 10px;
    --shadow-push: 0 4px 0 #6a5334;
    --shadow-push-active: 0 1px 0 #6a5334;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-padding-top: var(--tdp-header-h);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--tdp-header-h);
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.045;
    background-image:
        radial-gradient(ellipse at 20% 10%, var(--color-secondary) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 90%, var(--color-primary) 0%, transparent 40%);
}

@media (max-width: 768px) {
    :root { --tdp-header-h: 64px; }
}

[hidden] { display: none !important; }

img, video, iframe {
    max-width: 100%;
    height: auto;
}

a:not(.tdpBtn) {
    color: var(--color-primary);
}
a:not(.tdpBtn):hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

.tdpContainer {
    width: min(100% - 2rem, var(--tdp-page-w));
    margin-inline: auto;
}

.tdpProse {
    max-width: 760px;
}
.tdpProse .tdpTable-wrap,
.tdpProse .tdpReview-passport {
    max-width: none;
    width: 100%;
}

.tdpLead {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.tdpSection {
    padding: var(--space-xl) 0;
    position: relative;
}

.tdpSection::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 120px;
    border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
    background: var(--color-secondary);
    opacity: 0.08;
    filter: blur(18px);
    top: 10%;
    right: 4%;
    pointer-events: none;
}

.tdpHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--tdp-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(44, 36, 24, 0.08);
}

.tdpHeader-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    min-height: var(--tdp-header-h);
}

.tdpHeader-logo {
    flex-shrink: 0;
    order: 1;
}
.tdpHeader-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.tdpNav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    order: 2;
    min-width: 0;
}

.tdpNav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-text);
    padding: 0.35rem 0.2rem;
}
.tdpHeader a.tdpNav-link,
.tdpHeader a.tdpNav-link:visited {
    color: var(--color-text);
}
.tdpHeader a.tdpNav-link:hover,
.tdpHeader a.tdpNav-link.tdpIs-active {
    color: var(--color-primary);
}

.tdpHeader-cta {
    order: 3;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.tdpBurger {
    display: none;
    order: 4;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}
.tdpBurger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-dark);
    border-radius: 1px;
}

.tdpOverlay,
.tdpDrawer {
    display: none;
}

.tdpBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-push);
    transform: translateY(0);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.tdpBtn:hover {
    background: #ebe3d6;
}
.tdpBtn:active {
    transform: translateY(3px);
    box-shadow: var(--shadow-push-active);
}
a.tdpBtn,
a.tdpBtn:visited {
    color: var(--color-dark);
}
.tdpBtn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fffaf0;
}
a.tdpBtn-primary,
a.tdpBtn-primary:visited,
a.tdpBtn-primary:hover,
a.tdpBtn-primary:focus-visible {
    color: #fffaf0;
}
.tdpBtn-primary:hover {
    background: #7a603c;
}
.tdpHeader a.tdpBtn,
.tdpHeader a.tdpBtn:visited {
    color: var(--color-dark);
}
.tdpHeader a.tdpBtn-primary,
.tdpHeader a.tdpBtn-primary:visited {
    color: #fffaf0;
}

.tdpCard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    -webkit-mask:
        radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.tdpApp-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.tdpApp-preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

.tdpReview .tdpApp-preview {
    max-width: 280px;
    max-height: 280px;
}

.tdpHero {
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg);
    background:
        linear-gradient(135deg, #f3ebe0 0%, var(--color-bg) 48%, #efe6d8 100%);
    overflow: hidden;
}
.tdpHero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 280px;
    left: -40px;
    bottom: -60px;
    background: var(--color-primary);
    opacity: 0.12;
    filter: blur(28px);
    border-radius: 48% 52% 40% 60% / 55% 40% 60% 45%;
    pointer-events: none;
}
.tdpHero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 200px;
    right: 8%;
    top: 12%;
    background: var(--color-accent);
    opacity: 0.14;
    filter: blur(22px);
    border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
    pointer-events: none;
}

.tdpHero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    gap: var(--space-lg);
    align-items: center;
}

.tdpHero-title {
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    margin: 0 0 var(--space-md);
}

.tdpHero-note {
    margin: 0 0 var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--color-dark);
}
.tdpHero-note p { margin: 0; }

.tdpHero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.tdpHero a.tdpBtn,
.tdpHero a.tdpBtn:visited {
    color: var(--color-dark);
}
.tdpHero a.tdpBtn-primary,
.tdpHero a.tdpBtn-primary:visited {
    color: #fffaf0;
}

.tdpHero-still {
    margin: 0;
    justify-self: end;
}

.tdpTimeline {
    --tdp-rail: 1.75rem;
    --tdp-rail-gap: 1.75rem;
    position: relative;
    padding: var(--space-lg) 0 var(--space-xl);
    max-width: var(--tdp-page-w);
    margin: 0 auto;
    padding-left: calc(var(--tdp-rail) + var(--tdp-rail-gap));
    padding-right: 20px;
}
.tdpTimeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: var(--tdp-rail);
    width: 2px;
    background: linear-gradient(
        var(--color-primary) 0%,
        var(--color-accent) 45%,
        var(--color-secondary) 100%
    );
    border-radius: 2px;
    opacity: 0.7;
}

.tdpBlock {
    position: relative;
    padding: var(--space-lg) 0;
}
.tdpBlock + .tdpBlock {
    border-top: 1px solid transparent;
}
.tdpBlock::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    border-radius: 50% 40% 55% 45%;
    background: var(--color-accent);
    opacity: 0.06;
    filter: blur(18px);
    right: 4%;
    top: 12%;
    pointer-events: none;
}

.tdpTimeline-mark {
    position: absolute;
    left: calc(-1 * var(--tdp-rail-gap));
    top: calc(var(--space-lg) + 0.15rem);
    transform: translateX(-50%);
    z-index: 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fffaf0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 5px var(--color-bg), 0 1px 0 5px rgba(139, 111, 71, 0.18);
}

.tdpTimeline .tdpBlock .tdpContainer {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.tdpBlock-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 0 0 var(--space-sm);
    display: block;
    max-width: 40rem;
    padding: 0;
    background: none;
}

.tdpWipe {
    position: relative;
}
.tdpWipe::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    height: 3px;
    width: 0;
    max-width: 12rem;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.55s ease;
}
.tdpWipe.tdpIs-in::after {
    width: 100%;
}

.tdpBlock-lead {
    color: var(--color-muted);
    margin: 0 0 var(--space-md);
    max-width: 44rem;
}
.tdpBlock-note {
    font-size: 0.92rem;
    color: var(--color-muted);
}

.tdpMethod-steps {
    margin: 0 0 var(--space-md);
    padding-left: 1.25rem;
    max-width: 40rem;
}
.tdpMethod-steps li { margin-bottom: 0.5rem; }

@media (min-width: 901px) {
    .tdpTimeline {
        --tdp-rail: 2.25rem;
        --tdp-rail-gap: 2.25rem;
    }
    .tdpTimeline .tdpBlock:nth-child(odd) .tdpBlock-title,
    .tdpTimeline .tdpBlock:nth-child(odd) .tdpBlock-lead {
        max-width: 38rem;
    }
}

.tdpRank-list {
    display: grid;
    gap: var(--space-lg);
}

.tdpRank-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "pos pos pos"
        "icon name preview"
        "icon dev preview"
        "icon desc preview"
        "facts facts facts"
        "note note note"
        "omit omit omit"
        "actions actions actions";
    gap: 0.5rem 1rem;
    align-items: start;
    min-width: 0;
}
.tdpRank-card > * { min-width: 0; }
.tdpRank-card .tdpRank-pos { grid-area: pos; }
.tdpRank-card .tdpApp-icon { grid-area: icon; }
.tdpRank-card .tdpRank-name { grid-area: name; margin: 0; }
.tdpRank-card .tdpRank-dev { grid-area: dev; margin: 0; color: var(--color-muted); font-size: 0.92rem; }
.tdpRank-card .tdpRank-desc { grid-area: desc; margin: 0; }
.tdpRank-card .tdpRank-facts { grid-area: facts; margin: 0; font-size: 0.9rem; color: var(--color-muted); overflow-wrap: anywhere; }
.tdpRank-card .tdpRank-note { grid-area: note; margin: 0; font-size: 0.9rem; }
.tdpRank-card .tdpRank-omit { grid-area: omit; margin: 0; font-size: 0.85rem; color: var(--color-muted); }
.tdpRank-card .tdpApp-preview { grid-area: preview; justify-self: end; }
.tdpRank-card .tdpRank-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tdpRank-pos {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.tdpTable-wrap {
    overflow-x: auto;
    margin: var(--space-md) 0;
    -webkit-overflow-scrolling: touch;
}

.tdpTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 520px;
}
.tdpTable th,
.tdpTable td {
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.tdpTable th {
    background: var(--color-primary);
    color: #fffaf0;
    font-weight: 600;
}
.tdpTable tbody tr:nth-child(even) {
    background: rgba(139, 111, 71, 0.06);
}

.tdpBlog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tdpBlog-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.tdpBlog-list a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}
.tdpBlog-list p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.tdpCta {
    padding: var(--space-xl) 0;
    background:
        linear-gradient(180deg, #ebe2d4 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}
.tdpCta::before {
    content: "";
    position: absolute;
    inset: auto -5% -30% 40%;
    height: 220px;
    background: var(--color-secondary);
    opacity: 0.12;
    filter: blur(30px);
    border-radius: 50%;
}
.tdpCta-title {
    margin: 0 0 var(--space-sm);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}
.tdpCta-text { color: var(--color-muted); max-width: 40rem; }
.tdpCta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: var(--space-md);
}
.tdpCta a.tdpBtn-primary,
.tdpCta a.tdpBtn-primary:visited {
    color: #fffaf0;
}

.tdpFooter {
    padding: var(--space-xl) 0 var(--space-lg);
    background: #efe6d8;
    border-top: 1px solid var(--color-border);
}
.tdpFooter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.tdpFooter-heading {
    font-size: 1.1rem;
    margin: 0 0 var(--space-sm);
}
.tdpFooter-dl {
    margin: 0;
}
.tdpFooter-dl dt {
    font-weight: 600;
    margin-top: 0.75rem;
}
.tdpFooter-dl dd {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}
.tdpFooter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tdpFooter-list li { margin-bottom: 0.45rem; }
.tdpFooter-cookieBtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--color-primary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.tdpFooter-legal,
.tdpFooter-copy {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.tdpCookie {
    display: none;
}
.tdpCookie:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: var(--color-dark);
    color: #f5efe6;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}
.tdpCookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100% - 1.5rem, var(--tdp-page-w));
}
.tdpCookie a { color: var(--color-accent); }
.tdpCookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.tdpCookie .tdpBtn {
    box-shadow: none;
    min-height: 44px;
}
.tdpCookie .tdpBtn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}
.tdpCookie a.tdpBtn-primary,
.tdpCookie button.tdpBtn-primary {
    color: var(--color-dark);
}
body.tdpCookie-open {
    padding-bottom: 7rem;
}

.tdpIndex-list {
    list-style: none;
    margin: var(--space-lg) 0 0;
    padding: 0;
}
.tdpIndex-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.tdpIndex-band {
    display: block;
    border-radius: 4px;
    min-height: 100%;
}
.tdpIndex-band-review { background: linear-gradient(180deg, var(--color-primary), var(--color-secondary)); }
.tdpIndex-band-guide { background: linear-gradient(180deg, var(--color-accent), var(--color-primary)); }
.tdpIndex-band-note { background: linear-gradient(180deg, var(--color-secondary), #c4b09a); }
.tdpIndex-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}
.tdpIndex-excerpt {
    margin: 0.35rem 0;
    color: var(--color-muted);
}
.tdpIndex-item time {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.tdpReviews-hub {
    list-style: none;
    margin: var(--space-lg) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-md);
}
.tdpReviews-hubItem {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}
.tdpReviews-hubBody { min-width: 0; flex: 1; }
.tdpReviews-hubTitle {
    margin: 0.2rem 0 0.4rem;
    font-size: 1.25rem;
}

.tdpContact-card {
    max-width: 32rem;
    margin-top: var(--space-md);
}
.tdpContact-name { margin-top: 0; }
.tdpContact-line { margin: 0.35rem 0; }
.tdpContact-note {
    margin-top: var(--space-md);
    color: var(--color-muted);
    font-size: 0.92rem;
}

.tdpCheck-steps {
    list-style: none;
    counter-reset: tdp-step;
    margin: var(--space-lg) 0;
    padding: 0;
}
.tdpCheck-steps > li {
    counter-increment: tdp-step;
    position: relative;
    padding: var(--space-md) 0 var(--space-md) 3.2rem;
    border-bottom: 1px solid var(--color-border);
}
.tdpCheck-steps > li::before {
    content: counter(tdp-step);
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fffaf0;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.tdpCheck-steps h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
}

.tdpBack {
    margin: 0 0 var(--space-md);
}
.tdpBack a {
    text-decoration: none;
    font-weight: 500;
}

.tdpReview-passport {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.tdpReview-passport .tdpApp-facts {
    grid-column: 1 / -1;
    margin: 0;
    padding-left: 1.2rem;
}
.tdpReview-passport .tdpApp-note,
.tdpReview-passport .tdpApp-checked,
.tdpReview-passport .tdpBtn {
    grid-column: 1 / -1;
}
.tdpApp-checked {
    font-weight: 600;
    color: var(--color-primary);
}

code {
    font-size: 0.9em;
    background: var(--color-surface);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .tdpNav { display: none; }
    .tdpHeader-cta { display: none; }
    .tdpBurger { display: block; }

    .tdpOverlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }
    .tdpDrawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }
    .tdpDrawer-top {
        top: var(--tdp-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--tdp-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .tdpDrawer a {
        display: block;
        padding: 14px 20px;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 500;
    }
    .tdpDrawer-cta {
        margin: 12px 20px;
        width: calc(100% - 40px);
    }
    .tdpDrawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.75rem;
        cursor: pointer;
        color: var(--color-dark);
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .tdpOverlay {
        opacity: 1;
        visibility: visible;
    }
    body.nav-open .tdpDrawer-top {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 900px) {
    .tdpTimeline {
        --tdp-rail: 1.35rem;
        --tdp-rail-gap: 1.5rem;
        padding-right: 16px;
        max-width: none;
    }
    .tdpHero-grid {
        grid-template-columns: 1fr;
    }
    .tdpHero-still {
        justify-self: center;
    }
    .tdpHero-actions .tdpBtn {
        width: 100%;
    }
    .tdpFooter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tdpHeader-logo img { width: 120px; }

    .tdpRank-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "pos pos"
            "icon name"
            "icon dev"
            "desc desc"
            "facts facts"
            "note note"
            "omit omit"
            "preview preview"
            "actions actions";
    }
    .tdpRank-card .tdpApp-preview {
        justify-self: center;
        margin: 8px auto 0;
    }
    .tdpApp-icon {
        width: 72px;
        height: 72px;
    }
    .tdpReview-passport {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .tdpReviews-hubItem {
        flex-direction: column;
    }
    .tdpCookie:not([hidden]) {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        border-radius: 10px;
    }
    .tdpCookie-inner {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .tdpRank-card {
        grid-template-areas:
            "pos pos"
            "icon icon"
            "name name"
            "dev dev"
            "desc desc"
            "facts facts"
            "note note"
            "omit omit"
            "preview preview"
            "actions actions";
    }
    .tdpCta-actions .tdpBtn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .tdpWipe::after {
        width: 100%;
        transition: none;
    }
}
