:root {
    --color-primary: #50c878;
    --color-secondary: #7cb342;
    --color-accent: #daa520;
    --color-bg: #f0fdf4;
    --color-text: #1a2e22;
    --color-text-light: #4a6354;
    --color-border: #c5ddc9;
    --color-dark: #14261c;
    --font-head: "Albert Sans", sans-serif;
    --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
    --ts-page-w: 1120px;
    --ts-header-h: 72px;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 3rem;
}
@media (max-width: 768px) {
    :root { --ts-header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--ts-header-h); }
html, body { overflow-x: hidden; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    padding-top: var(--ts-header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d6a45; }
a:hover { color: var(--color-accent); }
h1, h2, h3, .ts-h2, .ts-hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}
.ts-container {
    max-width: var(--ts-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.ts-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    min-height: var(--ts-header-h);
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ts-header a, .ts-header a:visited { color: var(--color-dark); text-decoration: none; }
.ts-header-row {
    display: flex;
    align-items: center;
    min-height: var(--ts-header-h);
    gap: 1rem;
}
.ts-nav { display: flex; flex-wrap: nowrap; gap: 0.85rem; align-items: center; order: 1; flex: 1; }
.ts-logo { order: 2; flex-shrink: 0; }
.ts-header-end { order: 3; display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.ts-logo img { width: 180px; height: auto; display: block; }
.ts-nav-link { font-family: var(--font-head); font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.ts-nav-link.is-active { color: var(--color-primary); }
.ts-nav-link:hover { color: var(--color-secondary); transition: color 0.25s ease; }

.ts-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    border: 1.5px solid var(--color-primary);
    background: transparent;
    color: var(--color-dark);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    z-index: 0;
}
.ts-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}
.ts-btn:hover::before, .ts-btn:focus-visible::before { transform: translateX(0); }
.ts-btn[data-ts-variant="primary"] {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.ts-btn[data-ts-variant="primary"]::before { background: var(--color-secondary); }
.ts-btn[data-ts-variant="ghost"] { border-color: var(--color-dark); color: var(--color-dark); }
.ts-hero .ts-btn[data-ts-variant="ghost"] { border-color: #1a2e22; color: #1a2e22; }

.ts-burger {
    display: none;
    width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
}
.ts-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--color-dark);
}

.ts-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 38, 28, 0.45);
    z-index: 200;
}
.ts-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(85vw, 400px);
    height: 100dvh;
    background: #fff;
    z-index: 220;
    padding: 1.25rem 1.5rem 2rem;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
}
.ts-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.ts-drawer-label { font-family: var(--font-head); font-weight: 700; margin: 0; }
.ts-drawer-close {
    font-family: var(--font-head); font-weight: 600;
    border: 1px solid var(--color-border); background: var(--color-bg);
    padding: 0.5rem 0.85rem; cursor: pointer; min-height: 44px;
}
.ts-drawer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.ts-drawer-nav a {
    font-family: var(--font-head); font-weight: 600;
    text-decoration: none; color: var(--color-dark);
    padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--color-border);
    min-height: 44px;
}
body.nav-open { overflow: hidden; }

.ts-hero {
    background: linear-gradient(135deg, #e8f8ec 0%, #f7fbf0 48%, #eef6e4 100%);
    padding: var(--space-xl) 0;
}
.ts-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-lg);
    align-items: center;
}
.ts-kicker {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0 0 0.75rem;
}
.ts-hero-title { font-size: clamp(1.85rem, 3.2vw, 2.75rem); margin: 0 0 1rem; }
.ts-hero-text { font-size: 1.08rem; margin: 0 0 1.25rem; max-width: 36rem; }
.ts-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ts-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 140px 110px 130px;
    gap: 0.65rem;
}
.ts-mosaic-cell {
    margin: 0; overflow: hidden;
    border-radius: 0 10px 10px 10px;
    border: 1px solid var(--color-border);
    background: #fff;
}
.ts-mosaic-cell img { width: 100%; height: 100%; object-fit: cover; }
.ts-mosaic-cell--a { grid-row: 1 / 3; }
.ts-mosaic-cell--b { grid-row: 1 / 2; }
.ts-mosaic-cell--c { grid-row: 2 / 4; }
.ts-mosaic-cell--d { grid-row: 3 / 4; grid-column: 1 / 2; }

.ts-tabs-wrap { padding: var(--space-xl) 0; }
.ts-tablist {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}
.ts-tab {
    font-family: var(--font-head); font-weight: 600;
    background: transparent; border: 0;
    padding: 0.65rem 1rem; cursor: pointer;
    color: var(--color-text-light); min-height: 44px;
    border-bottom: 2px solid transparent;
}
.ts-tab[aria-selected="true"] {
    color: var(--color-dark);
    border-bottom-color: var(--color-accent);
}
.ts-panel { margin-bottom: var(--space-lg); }
.ts-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0 10px 10px 10px;
    margin-top: 22px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 10px 28px rgba(26, 46, 34, 0.06);
}
.ts-card-tab {
    position: absolute; top: -22px; left: 0;
    height: 22px; padding: 0 12px;
    border-radius: 8px 8px 0 0;
    font-family: var(--font-head); font-size: 0.75rem; line-height: 22px;
    background: var(--color-accent); color: #14261c; font-weight: 700;
}
.ts-h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin: 0 0 1rem; }
.ts-passport {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
}
.ts-passport-icon {
    width: 112px; height: 112px;
    border-radius: 22%;
    object-fit: contain;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.ts-passport-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 0.25rem; }
.ts-passport-dev { margin: 0 0 1rem; color: var(--color-text-light); }
.ts-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.45rem; }
.ts-facts li { padding: 0.35rem 0; border-bottom: 1px solid #e6f2e8; }
.ts-checked { font-size: 0.92rem; color: var(--color-text-light); }
.ts-versions, .ts-genre, .ts-check { padding-left: 1.1rem; margin: 0 0 1rem; }
.ts-versions li, .ts-genre li, .ts-check li { margin-bottom: 0.55rem; }
.ts-versions time { font-family: var(--font-head); font-weight: 600; display: inline-block; min-width: 11rem; }

.ts-cta {
    background: linear-gradient(90deg, #1a2e22, #2d4a38);
    color: #f0fdf4;
    padding: var(--space-xl) 0;
    text-align: center;
}
.ts-cta .ts-h2 { color: #f0fdf4; }
.ts-cta p { max-width: 36rem; margin: 0 auto 1.25rem; }

.ts-footer-band--accent {
    background: var(--color-primary);
    padding: 1.25rem 0;
}
.ts-footer-links {
    display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center;
}
.ts-footer-links a { color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.ts-footer-band--dark {
    background: var(--color-dark);
    color: #d7e8db;
    padding: 1.75rem 0 2rem;
}
.ts-footer-legal {
    list-style: none; padding: 0; margin: 0 0 1rem;
    display: flex; flex-wrap: wrap; gap: 1rem;
}
.ts-footer-legal a, .ts-footer-link {
    color: #f0fdf4; font-family: var(--font-head); background: none; border: 0;
    padding: 0; cursor: pointer; text-decoration: underline; font-size: 1rem;
}
.ts-footer-disc { font-size: 0.9rem; max-width: 52rem; }
.ts-footer-copy { font-size: 0.85rem; opacity: 0.85; }

.ts-cookie {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 400;
    background: #fff;
    border-top: 2px solid var(--color-accent);
    padding: 1rem 1.25rem;
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
.ts-cookie[hidden] { display: none !important; }
.ts-cookie p { margin: 0; max-width: 48rem; }

.ts-page { padding: var(--space-xl) 0; }
.ts-crumbs { margin: 0.5rem 0 1rem; font-size: 0.88rem; }
.ts-crumbs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ts-crumbs-item:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--color-text-light); }
.ts-article-layout {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: var(--space-lg);
    align-items: start;
}
.ts-sidebox {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0 10px 10px 10px;
    margin-top: 22px;
    padding: 1.5rem 1.15rem 1.15rem;
}
.ts-sidebox .ts-card-tab { background: var(--color-primary); color: #fff; }
.ts-feed-month { font-family: var(--font-head); margin: 2rem 0 0.75rem; }
.ts-feed-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.ts-feed-item h3 { margin: 0 0 0.35rem; font-family: var(--font-head); font-size: 1.15rem; }
.ts-feed-item h3 a { text-decoration: none; color: var(--color-dark); }
.ts-feed-meta { font-size: 0.85rem; color: var(--color-text-light); margin: 0 0 0.35rem; }
.ts-form { display: grid; gap: 0.85rem; max-width: 36rem; }
.ts-form label { font-family: var(--font-head); font-weight: 600; display: grid; gap: 0.35rem; }
.ts-form input, .ts-form textarea {
    font: inherit; padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-border); border-radius: 4px; background: #fff;
}
.ts-faq details {
    border: 1px solid var(--color-border); background: #fff;
    border-radius: 0 10px 10px 10px; margin: 0.75rem 0; padding: 0.85rem 1rem;
}
.ts-faq summary { font-family: var(--font-head); font-weight: 600; cursor: pointer; }

.ts-reveal[data-ts-in="1"] { animation: ts-k-clip 0.6s ease both; }
@keyframes ts-k-clip {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ts-reveal[data-ts-in="1"] { animation: none; }
    .ts-btn::before { transition: none; }
}

@media (max-width: 1100px) {
    .ts-nav { display: none; }
    .ts-burger { display: flex; }
    .ts-header-row { justify-content: space-between; }
    .ts-logo { order: 1; }
    .ts-header-end { order: 2; margin-left: 0; }
}
@media (max-width: 900px) {
    .ts-hero-grid, .ts-passport, .ts-article-layout { grid-template-columns: 1fr; }
    .ts-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .ts-mosaic-cell--a,
    .ts-mosaic-cell--b,
    .ts-mosaic-cell--c,
    .ts-mosaic-cell--d { grid-row: auto; grid-column: auto; min-height: 140px; }
}
@media (max-width: 768px) {
    .ts-logo img { width: 120px; }
    .ts-hero-actions .ts-btn { width: 100%; }
    .ts-versions time { display: block; min-width: 0; margin-bottom: 0.15rem; }
}
@media (max-width: 480px) {
    .ts-mosaic { grid-template-columns: 1fr; }
}
