/* === Base === */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-bg-dark: #0f1115;
    --color-text: #1a1d23;
    --color-text-secondary: #5a6270;
    --color-text-muted: #8a929f;
    --color-accent: #ffcc00;
    --color-accent-hover: #e6b800;
    --color-telegram: #2aabee;
    --color-telegram-hover: #229ad8;
    --color-border: #e2e5e9;
    --color-card: #ffffff;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --max-width: 1160px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    text-decoration: none;
}

.logo__img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.header__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-telegram);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.header__telegram:hover {
    background: var(--color-telegram-hover);
    transform: translateY(-1px);
}

.header__telegram svg {
    width: 20px;
    height: 20px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--small {
    background: var(--color-text);
    color: #fff;
}

.btn--small:hover {
    background: #2a2f38;
}

.btn--telegram {
    background: var(--color-telegram);
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
}

.btn--telegram:hover {
    background: var(--color-telegram-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(42,171,238,0.35);
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === Hero === */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,204,0,0.15);
    color: #8a6d00;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero__cta-note {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: var(--color-card);
}

.hero__image img {
    width: 100%;
    height: auto;
}

/* === Sections === */
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
}

/* === Problems === */
.problems {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.problem-card:nth-child(-n+3) {
    grid-column: span 2;
}

.problem-card:nth-child(n+4) {
    grid-column: span 3;
}

.problem-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.problem-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.problem-card__icon {
    width: 44px;
    height: 44px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.problem-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.problem-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === Features === */
.features {
    padding: 100px 0;
    background: var(--color-bg);
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature--reverse .feature__content {
    order: 2;
}

.feature--reverse .feature__image {
    order: 1;
}

.feature__badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.feature__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature__text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature__list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--color-text);
}

.feature__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.feature__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    background: var(--color-card);
}

.feature__image img {
    width: 100%;
    height: auto;
}

/* === Gallery === */
.gallery__disclaimer {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: -40px;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.gallery {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    transition: all var(--transition);
}

.gallery__item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.gallery__item--wide {
    grid-column: 1 / -1;
}

.gallery__item img {
    width: 100%;
    height: auto;
}

/* === Subscribe === */
.subscribe {
    padding: 100px 0;
    background: var(--color-bg-dark);
    color: #fff;
}

.subscribe__box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.subscribe__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subscribe__text {
    font-size: 17px;
    color: #a0a8b8;
    line-height: 1.7;
    margin-bottom: 32px;
}

.subscribe__note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 21, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    user-select: none;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox__img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.lightbox.active .lightbox__img {
    opacity: 1;
    transform: scale(1);
}

.lightbox__img.is-dragging {
    cursor: grabbing;
}

.lightbox__img-wrap {
    touch-action: none;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.lightbox__close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox__zoom-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 10;
}

.lightbox__zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox__zoom-btn:hover {
    background: rgba(255,255,255,0.25);
}

.zoom-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lightbox__zoom-value {
    min-width: 52px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 16px;
    }
    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .lightbox__zoom-controls {
        bottom: 12px;
        padding: 6px 10px;
    }
    .lightbox__zoom-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* === Roadmap === */
.roadmap {
    padding: 100px 0;
    background: var(--color-bg);
}

.roadmap--post {
    background: var(--color-bg-alt);
}

.roadmap__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.roadmap__heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.roadmap__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap__list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.roadmap__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

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

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

/* === Scroll to top === */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* === Footer === */
.footer {
    padding: 32px 0;
    background: #0a0c10;
    color: #5a6270;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    transform: translateY(30px);
    transition: transform 0.6s ease;
}

.animate.visible {
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__title {
        font-size: 40px;
    }

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

    .problem-card:nth-child(-n+3),
    .problem-card:nth-child(n+4) {
        grid-column: span 1;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .feature--reverse .feature__content,
    .feature--reverse .feature__image {
        order: unset;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .problems__grid {
        grid-template-columns: 1fr;
    }

    .feature__title {
        font-size: 24px;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .subscribe__title {
        font-size: 28px;
    }

    .btn--large {
        width: 100%;
    }
}
