:root {
    --color-primary: #27ae60;
    --color-secondary: #1abc9c;
    --color-accent: #f39c12;
    --color-bg: #f0fdf4;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #cde8d6;
    --color-panel: #ffffff;
    --thp-header-h: 72px;
    --thp-page-w: 1120px;
    --space-lg: 28px;
    --thp-radius: 20px;
    --thp-font-h: "Poppins", sans-serif;
    --thp-font-b: "Inter", sans-serif;
}

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

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}
html { scroll-padding-top: var(--thp-header-h); }
body {
    font-family: var(--thp-font-b);
    color: var(--color-text);
    background: var(--color-bg);
    padding-top: var(--thp-header-h);
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background:
        radial-gradient(420px 280px at 12% 18%, #1abc9c 0%, transparent 70%),
        radial-gradient(380px 240px at 88% 8%, #f39c12 0%, transparent 68%);
    z-index: 0;
}
img, video, iframe { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--thp-font-h); line-height: 1.2; }
a { color: var(--color-primary); }
a:not(.thp-u-btn) { text-decoration: none; }
a:not(.thp-u-btn):hover { color: var(--color-accent); }

.thp-u-container {
    max-width: var(--thp-page-w);
    margin: 0 auto;
    padding: 0 20px;
}
.thp-u-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.thp-u-radius { border-radius: var(--thp-radius); }
.thp-u-mb-lg { margin-bottom: var(--space-lg); }
.thp-u-text-center { text-align: center; }
.thp-u-prose { max-width: 760px; }
.thp-u-lede { color: var(--color-text-light); max-width: 46rem; }
.thp-u-page { padding: 40px 0 72px; position: relative; z-index: 1; }
.thp-u-wash {
    background: var(--color-panel);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.08);
}
.thp-u-tile {
    background: var(--color-panel);
    padding: 22px;
    border: 1px solid var(--color-border);
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.thp-u-tile:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.thp-u-tile h3 { margin-top: 0; }
.thp-u-mag {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin: 40px auto;
    position: relative;
    z-index: 1;
}
.thp-u-bleed {
    background: linear-gradient(180deg, #e6f8ee, #f0fdf4);
    padding: 48px 0;
    position: relative;
    z-index: 1;
}
.thp-u-steps { padding-left: 1.2rem; }
.thp-u-steps li { margin: 0.6rem 0; }
.thp-u-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.thp-u-label {
    font-family: var(--thp-font-h);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--color-secondary);
}
.thp-u-footgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.thp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--thp-header-h);
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.thp-header a,
.thp-header a:visited { color: #1a5c38; }
.thp-header__row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--thp-header-h);
}
.thp-header__logo { flex: 0 0 auto; }
.thp-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}
.thp-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.thp-nav a { font-weight: 500; white-space: nowrap; }
.thp-nav a.is-active { color: var(--color-accent); }
.thp-header__cta { margin-left: 8px; flex: 0 0 auto; }

.thp-u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    border: 0;
    padding: 10px 4px 12px;
    font: 600 1rem var(--thp-font-h);
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
}
.thp-u-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease, background-color 0.25s ease;
}
.thp-u-btn:hover::after,
.thp-u-btn:focus-visible::after { width: 100%; }
.thp-u-btn--mark { color: #1a5c38; }

.thp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}
.thp-hero__still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thp-hero .thp-u-container { position: relative; z-index: 1; width: 100%; }
.thp-hero__panel {
    max-width: 40%;
    background: rgba(240, 253, 244, 0.94);
    padding: 28px;
    border-radius: var(--thp-radius);
}
.thp-hero__title { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.thp-hero__text { margin: 0 0 18px; }

.thp-app {
    background: var(--color-panel);
    padding: 28px;
}
.thp-app__badges {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--color-secondary);
}
.thp-app__head { display: flex; gap: 16px; align-items: center; }
.thp-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}
.thp-app__name { font-family: var(--thp-font-h); font-size: 1.2rem; margin: 0; }
.thp-app__dev { color: var(--color-text-light); margin: 6px 0 0; }
.thp-app__facts { padding-left: 1.1rem; }
.thp-app__note, .thp-app__checked { color: var(--color-text-light); }
.thp-app__preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
}

.thp-faq__q {
    display: block;
    width: 100%;
    text-align: left;
    background: #eefaf2;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
    font: 600 1rem var(--thp-font-h);
    color: var(--color-text);
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.thp-faq__q:hover { background: var(--color-secondary); color: #fff; }
.thp-faq__a { padding: 8px 6px 12px; }

.thp-cta {
    padding: 56px 0 72px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.thp-footer {
    background: #163524;
    color: #d7efe0;
    padding: 40px 0 28px;
    position: relative;
    z-index: 1;
}
.thp-footer a,
.thp-footer a:visited { color: #9fe7c2; }
.thp-footer ul { list-style: none; padding: 0; margin: 0; }
.thp-footer li { margin: 6px 0; }
.thp-footer__link {
    background: none;
    border: 0;
    padding: 0;
    color: #9fe7c2;
    cursor: pointer;
    font: inherit;
    min-height: 40px;
}

.thp-burger,
.thp-overlay,
.thp-drawer { display: none; }

.thp-cookie { display: none; }
.thp-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    left: 0;
    right: 0;
    bottom: 0;
    background: #163524;
    color: #f0fdf4;
    padding: 16px 20px;
}
.thp-cookie a { color: #f39c12; }
.thp-cookie__actions { display: flex; gap: 12px; margin-left: auto; }
.thp-cookie .thp-u-btn { color: #f0fdf4; }

.thp-note { background: var(--color-panel); overflow: hidden; }
.thp-note__band { height: 72px; }
.thp-note__band--a { background: linear-gradient(90deg, #27ae60, #1abc9c); }
.thp-note__band--b { background: linear-gradient(90deg, #1abc9c, #f39c12); }
.thp-note__band--c { background: linear-gradient(90deg, #f39c12, #27ae60); }
.thp-note h2 { font-size: 1.15rem; padding: 0 18px; }
.thp-note p { padding: 0 18px 18px; }
.thp-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.thp-stills__item {
    margin: 0;
    background: #fff;
    padding: 12px;
    overflow: hidden;
}
.thp-stills__item img { display: block; width: 100%; height: auto; object-fit: contain; }
.thp-form { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.thp-form input,
.thp-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}
.thp-form__err { color: #c0392b; }
.thp-form__ok { color: var(--color-primary); }
.thp-crumbs { color: var(--color-text-light); font-size: 0.9rem; }

@keyframes thpFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.thp-u-mag,
.thp-u-bleed,
.thp-cta,
.thp-u-page { animation: thpFade 0.3s ease; }

@media (max-width: 1100px) {
    .thp-nav { display: none; }
    .thp-header__cta { display: none; }
    .thp-header__row { justify-content: space-between; }
    .thp-burger {
        display: block;
        width: 44px;
        height: 44px;
        margin-left: auto;
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer;
    }
    .thp-burger span {
        display: block;
        height: 2px;
        margin: 7px 8px;
        background: var(--color-primary);
    }
    .thp-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .thp-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }
    .thp-drawer a { display: block; padding: 14px 20px; min-height: 44px; }
    .thp-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        font-size: 1.8rem;
        cursor: pointer;
    }
    .thp-drawer--top {
        top: var(--thp-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--thp-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .thp-overlay { opacity: 1; visibility: visible; }
    body.nav-open .thp-drawer { visibility: visible; }
    body.nav-open .thp-drawer--top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .thp-header__logo img { width: 120px; }
    .thp-u-mag,
    .thp-u-split,
    .thp-u-footgrid { grid-template-columns: 1fr; }
    .thp-hero { min-height: 80vh; }
    .thp-hero__panel { max-width: 100%; }
    .thp-u-grid { grid-template-columns: repeat(2, 1fr); }
    .thp-app__icon { width: 64px; height: 64px; }
    .thp-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--thp-radius);
    }
    .thp-cookie__actions { margin-left: 0; }
    .thp-cookie .thp-u-btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .thp-u-grid,
    .thp-stills { grid-template-columns: 1fr; }
}
