:root {
    --bg-main: #0f1113;
    --bg-tile: #15181b;
    --emerald: #00ffb2;
    --emerald-glow: rgba(0,255,178,0.35);
    --text-main: #e5e7eb;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Inter, system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER */
.header {
    text-align: center;
    padding: 50px 20px 30px;
}

.logo-text {
    font-size: 3rem;
    letter-spacing: 0.35em;
    color: var(--emerald);
    text-shadow: 0 0 22px var(--emerald-glow);
}

.subtitle {
    margin-top: 8px;
    color: #8b8f94;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
}

/* MOSAIC */
.mosaic {
    width: 90%;
    max-width: 900px;
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 110px;
    gap: 14px;
}

/* TILE BASE */
.tile {
    position: relative;
    background: var(--bg-tile);
    border: 1px solid rgba(0,255,178,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    border-radius: 22px 26px 20px 24px;
    transition:
        transform 0.55s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.55s cubic-bezier(.2,.8,.2,1),
        border-radius 0.55s cubic-bezier(.2,.8,.2,1);
}

/* TEXT */
.tile-text {
    position: relative;
    z-index: 3;
    font-size: 1rem;
    letter-spacing: 0.18em;
    color: var(--emerald);
    transition: color 0.55s cubic-bezier(.2,.8,.2,1);
}

/* SIZES */
.tile-lg {
    grid-column: span 4;
    grid-row: span 2;
    font-size: 1.3rem;
}

.tile-md {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-sm {
    grid-column: span 2;
    grid-row: span 1;
    font-size: 0.95rem;
}

/* SHIMMER */
.tile::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        100deg,
        transparent 0%,
        var(--emerald) 45%,
        transparent 70%
    );
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
}

/* HOVER EFFECTS */
.tile:hover {
    transform: scale(1.2);
    z-index: 20;
    border-radius: 48px 18px 52px 24px;
    box-shadow:
        0 0 40px rgba(0,255,178,0.35),
        inset 0 0 25px rgba(0,255,178,0.18);
}

.tile:hover::before {
    animation: slideGlow 0.9s ease forwards;
}

/* ANIMATION */
@keyframes slideGlow {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    70% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(120%);
        opacity: 1;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 0.8rem;
}

/* BACK ARROW IMAGE */
.back-arrow {
    display: inline-block;
    margin: 20px;
}

.back-img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.back-img:hover {
    transform: scale(1.1);
}

/* NEWS PAGE */
.news-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.news-page h2 {
    margin-bottom: 30px;
}

.news-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    width: 100%;
    background: var(--bg-tile);
    border-radius: 28px;
    border: 1px solid rgba(0,255,178,0.14);
    padding: 25px 30px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0,255,178,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(0,255,178,0.25);
}

.news-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 8px;
}

.news-card h3 {
    color: var(--emerald);
    margin-bottom: 12px;
}

.news-card p {
    line-height: 1.5;
}


/* GOALS PAGE */
.goals-page {
    text-align: center;
    padding: 40px 20px;
}

.goals-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.goal-card {
    background: var(--bg-tile);
    border-radius: 28px;
    border: 1px solid rgba(0,255,178,0.14);
    padding: 20px 25px;
    max-width: 600px;
    width: 90%;
    text-align: left;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(0,255,178,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.goal-card.done {
    color: var(--emerald);
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0,255,178,0.25);
}

.goals-note {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }

    .tile-lg,
    .tile-md,
    .tile-sm {
        grid-column: span 2;
    }

    .news-card, .goal-card {
        padding: 20px;
    }

    .back-img {
        width: 40px;
    }
}

.snow-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}
.header {
  position: relative; /* чтобы позиционирование внутри было от header */
}

.ice-image {
  position: absolute; /* поверх текста */
  top: 0;             /* смещение по вертикали */
  left: 54%;          /* по центру */
  transform: translateX(-50%); /* центрируем по горизонтали */
  width: 115px;       /* размер картинки */
  height: auto;       /* сохраняем пропорции */
  pointer-events: none; /* чтобы не мешала кликам на текст */
  z-index: 10;        /* чтобы была поверх текста */
}

