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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ff9cc7 0%, #ff7aa8 50%, #f06595 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

@media (max-width: 480px) {
    .container {
        padding: 10px 0;
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.header {
    background: linear-gradient(135deg, #f06595 0%, #c2255c 100%);
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 480px) {
    .header-video {
        object-fit: cover;
        object-position: center;
    }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 101, 149, 0.6);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.avatar-wrapper {
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.name {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.links {
    padding: 30px 24px;
}

.link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.link:hover::before {
    left: 100%;
}

.link.primary {
    background: linear-gradient(135deg, #f06595, #c2255c);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 37, 92, 0.3);
}

.link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 37, 92, 0.4);
}

.link.vk {
    background: linear-gradient(135deg, #ff9cc7, #ff7aa8);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 168, 0.3);
}

.link.vk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 168, 0.4);
}

.link.secondary {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #495057;
    border: 2px solid #e9ecef;
}

.link.secondary:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.link span {
    font-weight: 600;
    font-size: 15px;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-title {
    font-weight: 600;
    font-size: 15px;
}

.link-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.divider {
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-text {
    padding: 0 16px;
    font-size: 14px;
    color: #868e96;
    font-weight: 500;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6);
}

.divider-text::before {
    right: 100%;
    margin-right: 8px;
}

.divider-text::after {
    left: 100%;
    margin-left: 8px;
    background: linear-gradient(to left, transparent, #dee2e6);
}

/* Footer */
.footer {
    padding: 24px 24px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-text {
    font-size: 13px;
    color: #868e96;
    font-weight: 500;
    margin: 0;
}

.footer-tagline {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: #c2255c;
    font-weight: 600;
    margin: 0;
    opacity: 0.8;
}

/* Snowflakes animation with depth of field */
@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) translateZ(0);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(calc(var(--drift, 0px) * 0.5)) translateZ(0);
    }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 0px)) translateZ(0);
    }
    75% {
        transform: translateY(75vh) translateX(calc(var(--drift, 0px) * 1.5)) translateZ(0);
    }
    100% {
        transform: translateY(110vh) translateX(calc(var(--drift, 0px) * 2)) translateZ(0);
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(5px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-5px);
    }
}

.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10vh;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    will-change: transform, filter;
    animation: fall linear infinite;
    animation-duration: var(--duration, 10s);
    animation-delay: var(--delay, 0s);
    transform-origin: center;
}

/* Mobile responsive */
@media (max-width: 520px) {
    .card {
        border-radius: 20px;
    }

    .header {
        padding: 30px 20px 25px;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .name {
        font-size: 20px;
    }

    .tagline {
        font-size: 12px;
    }

    .links {
        padding: 24px 20px;
    }

    .link {
        padding: 14px 16px;
    }

    .link span {
        font-size: 14px;
    }

    .link-title {
        font-size: 14px;
    }

    .link-subtitle {
        font-size: 12px;
    }

    .footer {
        padding: 20px 20px 24px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-tagline {
        font-size: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 8px 0;
    }

    .header {
        padding: 25px 16px 20px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .name {
        font-size: 18px;
    }

    .tagline {
        font-size: 11px;
    }

    .links {
        padding: 20px 16px;
    }

    .link {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .footer {
        padding: 18px 16px 22px;
    }

    .footer-text {
        font-size: 11px;
    }

    .footer-tagline {
        font-size: 13px;
    }
}

/* Content Section */
.content-section {
    padding: 0 24px 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.content-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(194, 37, 92, 0.2);
}

.content-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Квадратное соотношение */
    overflow: hidden;
    background: #f8f9fa;
}

.content-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-item:hover .content-overlay {
    opacity: 1;
}

.content-overlay i {
    font-size: 32px;
    color: white;
}

.content-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.content-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-source {
    font-size: 11px;
    color: #868e96;
    font-weight: 500;
}

/* Mobile responsive for content */
@media (max-width: 520px) {
    .content-section {
        padding: 0 20px 20px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .content-info {
        padding: 10px;
    }

    .content-title {
        font-size: 12px;
    }

    .content-source {
        font-size: 10px;
    }
}

@media (max-width: 375px) {
    .content-section {
        padding: 0 16px 16px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .content-overlay i {
        font-size: 24px;
    }
}
