:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --text: #111318;
    --muted: #626977;
    --line: rgba(17, 19, 24, 0.1);
    --accent: #1977ff;
    --accent-2: #12b981;
    --shadow: 0 24px 80px rgba(32, 40, 58, 0.15);
    --header-bg: rgba(246, 247, 251, 0.82);
}

:root[data-theme="dark"] {
    --bg: #08090d;
    --panel: #11141b;
    --panel-strong: #171b24;
    --text: #f6f7fb;
    --muted: #a1a8b5;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #4f9bff;
    --accent-2: #46dfb1;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(8, 9, 13, 0.78);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--panel) 52%, transparent), transparent 460px),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 64px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.chips,
.section-heading,
.wallpaper-meta,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 750;
    font-size: 18px;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: conic-gradient(from 180deg, #4f9bff, #46dfb1, #ffd166, #ff5c8a, #4f9bff);
    box-shadow: 0 0 24px rgba(79, 155, 255, 0.4);
}

.main-nav {
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.main-nav a:hover,
.text-link:hover {
    color: var(--text);
}

.header-actions {
    gap: 12px;
}

.theme-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 76px;
    height: 38px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    cursor: pointer;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffd166;
    transition: transform 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .theme-toggle::before {
    transform: translateX(38px);
    background: #4f9bff;
}

.theme-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #111318;
}

.theme-icon svg,
.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:root[data-theme="light"] .moon,
:root[data-theme="dark"] .sun {
    color: var(--muted);
}

:root[data-theme="dark"] .moon {
    color: #ffffff;
}

.telegram-link,
.button,
.icon-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 750;
}

.telegram-link {
    padding: 10px 14px;
    color: #ffffff;
    background: #229ed9;
    border-color: transparent;
    font-size: 14px;
}

.site-main {
    overflow: hidden;
}

.hero,
.archive-hero,
.wallpaper-section,
.single-wallpaper {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(30px, 5vw, 76px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 44px 0 34px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(54px, 9vw, 116px);
    line-height: 0.9;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
}

h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.hero-copy p {
    max-width: 590px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
}

.button.primary {
    color: #ffffff;
    background: var(--text);
    border-color: var(--text);
}

:root[data-theme="dark"] .button.primary {
    color: #08090d;
    background: #ffffff;
}

.button.secondary {
    background: var(--panel);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin: 0 0 22px;
}

.hero-metrics span {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-metrics strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.1;
}

.chips {
    flex-wrap: wrap;
    gap: 8px;
}

.chips span,
.chips a {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--panel) 84%, transparent);
    font-size: 13px;
    font-weight: 750;
}

.hero-showcase {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 650px;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 7% 3% 9% 2%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(79, 155, 255, 0.16), rgba(70, 223, 177, 0.1) 48%, rgba(255, 92, 138, 0.12)),
        color-mix(in srgb, var(--panel) 62%, transparent);
    box-shadow: var(--shadow);
}

.phone-frame {
    position: relative;
    overflow: hidden;
    width: min(76vw, 328px);
    aspect-ratio: 9 / 19.5;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 46px;
    background: #0b0d12;
    box-shadow: var(--shadow);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
}

.main-phone {
    z-index: 4;
    transform: rotate(4deg);
}

.side-phone {
    position: absolute;
    z-index: 2;
    width: 178px;
    padding: 7px;
    border-radius: 32px;
    opacity: 0.96;
}

.side-phone img {
    border-radius: 25px;
}

.side-phone-left {
    left: 22px;
    top: 96px;
    transform: rotate(-9deg);
}

.side-phone-right {
    right: 16px;
    bottom: 126px;
    transform: rotate(9deg);
}

.floating-stat {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 80px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.floating-stat strong,
.floating-stat span {
    display: block;
}

.floating-stat span,
.wallpaper-meta p,
.site-footer {
    color: var(--muted);
}

.showcase-strip {
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: 60px;
    display: grid;
    grid-template-columns: repeat(4, 44px);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.showcase-strip img {
    width: 44px;
    height: 62px;
    border-radius: 6px;
    object-fit: cover;
}

.wallpaper-section {
    padding: 24px 0 80px;
}

.section-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.text-link {
    color: var(--muted);
    font-weight: 800;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wallpaper-card {
    min-width: 0;
}

.text-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.wallpaper-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 220ms ease;
}

.wallpaper-card:hover .wallpaper-image img {
    transform: scale(1.035);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.wallpaper-meta {
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px 0;
}

.wallpaper-meta p {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 650;
}

.icon-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--panel);
}

.icon-button:hover,
.button.secondary:hover,
.telegram-link:hover {
    transform: translateY(-1px);
}

.archive-hero {
    padding: 64px 0 22px;
}

.archive-hero h1 {
    font-size: clamp(42px, 7vw, 84px);
}

.single-wallpaper {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 84px);
    align-items: center;
    padding: 54px 0 80px;
}

.single-preview img {
    max-height: 760px;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.archive-description {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.single-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.pagination {
    margin-top: 36px;
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 4vw, 64px);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero,
    .archive-hero,
    .wallpaper-section,
    .single-wallpaper {
        width: min(100% - 32px, 920px);
    }

    .wallpaper-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .side-phone {
        width: 150px;
    }

    .side-phone-left {
        left: 0;
    }

    .side-phone-right {
        right: 0;
    }
}

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }

    .hero,
    .single-wallpaper {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .hero-copy {
        max-width: 680px;
    }

    .hero-showcase {
        min-height: 540px;
    }

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

    .single-preview {
        order: 2;
    }

    .single-content {
        order: 1;
    }
}

@media (max-width: 520px) {
    .site-header {
        gap: 12px;
        padding-inline: 14px;
        min-height: 68px;
    }

    .telegram-link {
        display: none;
    }

    .brand {
        font-size: 16px;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
    }

    .theme-toggle {
        width: 70px;
        height: 36px;
    }

    .theme-toggle::before {
        width: 26px;
        height: 26px;
    }

    :root[data-theme="dark"] .theme-toggle::before {
        transform: translateX(34px);
    }

    .hero,
    .archive-hero,
    .wallpaper-section,
    .single-wallpaper {
        width: calc(100% - 28px);
    }

    .hero {
        padding-top: 28px;
        gap: 20px;
    }

    h1 {
        font-size: clamp(48px, 16vw, 58px);
        line-height: 0.95;
    }

    h2 {
        font-size: 34px;
    }

    .hero-copy p,
    .archive-description,
    .single-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-showcase {
        min-height: 460px;
    }

    .phone-frame {
        width: min(72vw, 260px);
        border-radius: 38px;
    }

    .phone-frame img {
        border-radius: 29px;
    }

    .side-phone {
        display: none;
    }

    .showcase-strip {
        left: 50%;
        bottom: 22px;
        transform: translateX(-50%);
    }

    .wallpaper-grid {
        gap: 14px;
    }

    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-stat {
        right: 10px;
        bottom: 92px;
    }

    .wallpaper-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .icon-button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .wallpaper-grid {
        grid-template-columns: 1fr;
    }
}
