/* ===== Микротаймер — лендинг. Светлый чистый стиль ===== */

:root {
    --color-primary: #2f6fed;
    --color-primary-dark: #245cc7;
    --color-accent: #ffb020;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f8fc;
    --color-surface: #ffffff;
    --color-border: #e5e9f0;
    --color-text: #1f2933;
    --color-text-soft: #5b6577;
    --color-text-faint: #8a93a6;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(31, 41, 51, 0.06);
    --shadow-md: 0 12px 30px rgba(31, 41, 51, 0.08);

    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1080px;
}

/* ===== Сброс и база ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Хедер ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--color-text-soft);
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.site-nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Бургер-меню (мобильные) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
    padding: 72px 0 64px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-soft);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--color-text-faint);
    font-size: 0.92rem;
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta li::before {
    content: "✔";
    color: var(--color-primary);
    font-weight: 700;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(47, 111, 237, 0.25));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 111, 237, 0.28);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 10px 26px rgba(47, 111, 237, 0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-ghost:hover {
    background: rgba(47, 111, 237, 0.08);
}

.btn-large {
    padding: 16px 34px;
    font-size: 1.1rem;
}

/* ===== Секции ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-lead {
    color: var(--color-text-soft);
    font-size: 1.05rem;
}

/* ===== Карточки ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* ===== Список удобства ===== */
.comfort-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
}

.comfort-list li {
    position: relative;
    padding: 18px 0 18px 44px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-soft);
}

.comfort-list li:last-child {
    border-bottom: none;
}

.comfort-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.9;
    box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px var(--color-primary);
}

.comfort-list strong {
    color: var(--color-text);
}

/* ===== Скачивание ===== */
.section-download {
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
}

.download-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 820px;
    margin: 0 auto;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.download-icon {
    font-size: 2.4rem;
}

.download-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.download-note {
    flex-basis: 100%;
    text-align: center;
    color: var(--color-text-faint);
    font-size: 0.9rem;
    min-height: 1.4em;
    margin-top: 4px;
}

/* ===== Футер ===== */
.site-footer {
    background: #1f2933;
    color: #cbd2dc;
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
}

.footer-copy {
    font-size: 0.9rem;
}

/* ===== Адаптив ===== */
@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-meta {
        justify-content: center;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .site-nav.open {
        max-height: 320px;
    }

    .site-nav a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .section {
        padding: 56px 0;
    }

    .download-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 28px 20px;
    }

    .download-info {
        flex-direction: column;
    }

    .download-meta {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Список обновлений (changelog) ===== */
.changelog {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}
.release {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.release-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.version-tag {
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    padding: 2px 14px;
    font-size: 0.95rem;
}
.release-date {
    color: var(--color-text-faint);
    font-size: 0.9rem;
}
.release-list {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text-soft);
}
.release-list li {
    margin-bottom: 8px;
}
.release-list code {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0 5px;
    font-size: 0.9em;
    color: var(--color-text);
}