:root {
    --color-bg: #1C1D22;
    --color-text: #DADBDA;
    --color-light: #DEDEDE;
    --font-main: "Inter", sans-serif;
    --color-accent: #A0A8B4;
    --color-accent-dim: rgba(160, 168, 180, 0.15);
    --color-accent-muted: rgba(160, 168, 180, 0.6);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

html {
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    cursor: none !important;
}

::selection {
    background: var(--color-accent);
    color: #fff;
}

body {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

p {
    font-size: 1rem;
    font-weight: 400;
}

h1 {
    font-size: 16rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.85;
    background: linear-gradient(180deg, var(--color-text), var(--color-accent-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 6rem;
    font-weight: 700;
}

h3 {
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 16px;
}

h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

h5 {
    font-size: 12rem;
    font-weight: 900;
    line-height: 60%;
    letter-spacing: -0.03em;
}

h6 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6rem;
}

.muted {
    opacity: 0.4;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.wtf-description {
    padding-top: 100px;
    opacity: 0.5;
}

/* NAVIGATION */
#nav-section {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 29, 34, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navigation {
    display: flex;
    gap: 40px;
}

.navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}

.navigation a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-smooth);
}

.navigation a:hover {
    color: var(--color-accent);
}

.navigation a:hover::after {
    width: 100%;
}

/* HEADER */
#header-section {
    height: 92vh;
    margin-left: 60px;
    margin-right: 60px;
    position: relative;
}

#header-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60px;
    right: -60px;
    bottom: 0;
    background: radial-gradient(ellipse, transparent 40%, rgba(28,29,34,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

.titles {
    margin: 0 auto;
    width: fit-content;
    padding-top: 10em;
    padding-bottom: 10em;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.tit1 {
    width: fit-content;
    margin-left: 28%;
    margin-bottom: -2rem;
    letter-spacing: 0.6rem;
    font-weight: 300;
}

.tit2 {
    width: fit-content;
    margin-left: 50%;
    margin-top: -2rem;
    letter-spacing: 0.6rem;
    font-weight: 300;
}

.links {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 1;
}

.links a {
    display: inline-block;
    margin-bottom: 15px;
}

.links img {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.links a:hover img {
    opacity: 1;
}

/* NUMBERS */
#our-numbers {
    background-color: var(--color-light);
    color: #000;
    padding-top: 150px;
    padding-bottom: 150px;
    position: relative;
}

#our-numbers::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-light));
    pointer-events: none;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 90vw;
    margin: 0 auto;
    margin-top: 200px;
}

.number {
    min-width: 0;
    border-left: 1px solid rgba(0,0,0,0.08);
    padding-left: 20px;
    transition: border-left-color var(--transition-smooth);
}

.number:first-child {
    border-left: none;
    padding-left: 0;
}

.number h2 {
    transition: color var(--transition-smooth);
}

.number:hover {
    border-left-color: var(--color-accent);
}

.number:hover h2 {
    color: var(--color-accent);
}

.number h4 {
    padding-top: 40px;
}

/* WTF */
#wtf {
    background-color: var(--color-light);
    color: #000;
    position: relative;
}

#wtf::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-light), var(--color-bg));
    pointer-events: none;
}

.wtftitle {
    max-width: 85vw;
    margin: 0 auto;
    padding-bottom: 150px;
}

/* CARDS */
#photos-section {
    color: white;
    padding-top: 150px;
    padding-bottom: 150px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 150px;
}

.photo-card {
    overflow: hidden;
    border-radius: 4px;
    transition: transform var(--transition-smooth);
}

.photo-card:hover {
    transform: scale(1.02);
    z-index: 2;
}

.photo-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    position: relative;
    border-radius: 4px;
}

.photo-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
    z-index: 1;
}

.photo-container h6 {
    position: absolute;
    bottom: -4px;
    font-size: 1.5rem;
    line-height: .8;
    z-index: 2;
    color: white;
    transition: transform var(--transition-smooth);
}

.photo-container img {
    filter: grayscale(100%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.5s ease;
}

.photo-card:hover .photo-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.photo-card:hover .photo-container h6 {
    transform: translateY(-4px);
}

.photo-name {
    padding: 15px;
    text-align: right;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-muted);
}

.footer {
    background-color: var(--color-bg);
    color: rgba(255, 255, 255, .5);
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
}

.footer p {
    font-size: .8rem;
}

.flink {
    text-decoration: none;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.flink:hover {
    color: #fff;
}


/* ADAPTATION */

@media (max-width: 1024px) {
    h1 {
        font-size: 12rem;
    }
    
    h2 {
        font-size: 4.5rem;
    }
    
    h5 {
        font-size: 9rem;
    }
    
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .titles {
        padding-top: 8em;
        padding-bottom: 8em;
    }
    
    .tit1, .tit2 {
        letter-spacing: 0.3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 8rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h5 {
        font-size: 6rem;
    }
    
    h6 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    #nav-section {
        padding: 15px 30px;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .navigation {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
    
    .navigation a {
        padding-left: 0;
        font-size: 0.9rem;
    }
    
    #header-section {
        margin-left: 30px;
        margin-right: 30px;
        height: auto;
        min-height: 80vh;
    }
    
    .titles {
        padding-top: 5em;
        padding-bottom: 5em;
        width: 100%;
        text-align: center;
    }
    
    .tit1 {
        margin-left: 0;
        margin-bottom: -1.5rem;
        width: 100%;
        letter-spacing: 0.2rem;
        font-size: 0.9rem;
    }
    
    .tit2 {
        margin-left: 0;
        margin-top: -1.5rem;
        width: 100%;
        letter-spacing: 0.2rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .links {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 50px;
        text-align: center;
    }
    
    .numbers {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 100px;
        gap: 40px 20px;
    }
    
    .number {
        min-width: 140px;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding-bottom: 20px;
    }

    .number:last-child {
        border-bottom: none;
    }

    body::before {
        display: none;
    }
    
    .number h4 {
        padding-top: 20px;
        font-size: 1rem;
    }
    
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 80px;
        gap: 15px;
    }
    
    .photo-container {
        height: 180px;
    }

    #our-numbers,
    #photos-section,
    #wtf {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .wtftitle {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 5rem;
        line-height: 1;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    h5 {
        font-size: 3.5rem;
        line-height: 70%;
    }
    
    h6 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    #nav-section {
        padding: 15px 20px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    #header-section {
        margin-left: 20px;
        margin-right: 20px;
        min-height: 70vh;
    }
    
    .titles {
        padding-top: 3em;
        padding-bottom: 3em;
    }
    
    .tit1, .tit2 {
        letter-spacing: 0.1rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .tit1 {
        margin-bottom: 0;
    }
    
    .tit2 {
        margin-top: 0;
    }
    
    .numbers {
        grid-template-columns: 1fr;
        margin-top: 60px;
        gap: 30px;
    }
    
    .number {
        text-align: center;
        min-width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }

    .photo-card:hover {
        transform: none;
    }
    
    .number h2 {
        font-size: 3rem;
    }
    
    .number h4 {
        padding-top: 15px;
        font-size: 0.9rem;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        padding-top: 50px;
        gap: 20px;
    }
    
    .photo-container {
        height: 250px;
    }
    
    .photo-container h6 {
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }
    
    .photo-name {
        text-align: left;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .wtftitle p {
        padding-top: 50px;
        line-height: 1.5;
    }
    
    #our-numbers,
    #photos-section,
    #wtf {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .wtftitle {
        padding-bottom: 60px;
    }
    
    .footer p {
        font-size: 0.7rem;
        padding: 0 15px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h5 {
        font-size: 2.8rem;
    }
    
    .photo-container {
        height: 200px;
    }
    
    .photos-grid {
        gap: 15px;
    }
}





/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.wtf-description.reveal.revealed {
    opacity: 0.5;
}

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.25s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .wtf-description.reveal {
        opacity: 0.5 !important;
    }

    .cursor-outer,
    .cursor-inner {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    * {
        cursor: auto !important;
    }
}

/* Cursor via dipsik */
.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    
    /* Основной эффект инверсии */
    backdrop-filter: invert(1) hue-rotate(180deg);
    -webkit-backdrop-filter: invert(1) hue-rotate(180deg);
    
    /* Дополнительные эффекты для усиления */
    background-color: rgba(255, 255, 255, 0.1);
    mix-blend-mode: difference;
    
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    backdrop-filter: invert(1);
    -webkit-backdrop-filter: invert(1);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: drop-shadow(0 0 3px white);
}