:root {
    --card-bg: #1c1c1c99;
    --text-color: #ffffff;
    --cyan: #00ffff;
    --orange: #ff4d00;
    --button-bg: #ffffff;
    --button-text: #000000;
    --easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
    --easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
    --timing: 1s;
    --delay: 0.5s;
    --anime-time: 12s;
    --path-width: 2px;
    --clip-distance: 0.05;
}

@font-face {
    font-family: 'Photocrew';
    font-display: block;
    src: url(/fonts/font/photocrew-thin.woff2) format("woff2"), url(/fonts/font/photocrew-thin.woff) format("woff");
    font-weight: 300;
    font-style: normal
}
@font-face {
    font-family: 'Photocrew';
    font-display: block;
    src: url(/fonts/font/photocrew-regular.woff2) format("woff2"), url(/fonts/font/photocrew-regular.woff) format("woff");
    font-weight: 400;
    font-style: normal
}
@font-face {
    font-family: 'Photocrew';
    font-display: block;
    src: url(/fonts/font/photocrew-regular.woff2) format("woff2"), url(/fonts/font/photocrew-regular.woff) format("woff");
    font-weight: 700;
    font-style: normal
}
/* inter-500 - cyrillic_latin */
@font-face {
    font-family: 'Inter';
    font-display: block;
    font-style: normal;
    font-weight: 500; 
    src: url('/fonts/Inter/inter-500.woff2') format('woff2');
}

html {
    font-size: 1vw;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #000;
    background: url(/bh.webp) no-repeat;
    background-size: cover;   
    color: var(--text-color);
    /*font-family: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto", sans-serif;*/
    font-family: 'Photocrew', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: auto;
    max-width: 100vw;
    font-size: 1rem;
}

.blob {
    position: fixed;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
    will-change: transform, border-radius;
    transform: translate3d(0, 0, 0);
    background-image: radial-gradient(circle at center, 
        var(--blob-color) 0%,
        var(--blob-color) 50%,
        transparent 100%
    );
}

.blob-1 {
    --blob-color: var(--cyan);
    top: -35%;
    left: -35%;
    animation: 
        moveBlob1 40s infinite cubic-bezier(0.4, 0, 0.2, 1),
        morphBlob 20s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-2 {
    --blob-color: var(--orange);
    bottom: -35%;
    right: -35%;
    animation: 
        moveBlob2 40s infinite cubic-bezier(0.4, 0, 0.2, 1),
        morphBlob 20s infinite cubic-bezier(0.4, 0, 0.2, 1) reverse;
}

@keyframes moveBlob1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(50vw, 25vh, 0) scale(1.1); }
    66% { transform: translate3d(15vw, 50vh, 0) scale(0.9); }
}

@keyframes moveBlob2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(-50vw, -25vh, 0) scale(1.1); }
    66% { transform: translate3d(-15vw, -50vh, 0) scale(0.9); }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 50%; }
    50% { border-radius: 45% 55% 55% 45% / 45% 45% 55% 55%; }
}


.t-container_100{width:100%;padding:0}
.t-width{width:100%}
.t-width_100{max-width:100%}
.annexx_noise {
    background-image: url(/img/tild3265-3261-4333-a361-353739633737__noise.gif);
    background-size: 120px;
    opacity: calc(11 / 100);
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999999;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.09 0'/%%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
    animation: noiseAnimation 0.25s steps(2) infinite;
}

@keyframes steam {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

main {
    position: relative;
    z-index: 1;
    padding-bottom: 5vh;
}

header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5vh 5vw 0;
    margin-bottom: 4vh;
}

h1 {
    /*font-size: min(5vw, 56px);*/
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    font-family: 'Inter', Roboto, sans-serif;
    letter-spacing: normal;
}

h1 > span {
    font-family: 'Photocrew', Roboto, sans-serif;
}

.card-container {
    width: 85vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    position: relative;
    opacity: 1 !important;
}

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--angle, 0deg), 
        transparent 0%, 
        transparent 25%,
        var(--card-color) 45%,
        var(--card-color) 55%,
        transparent 75%, 
        transparent 100%
    );
    -webkit-mask: 
        linear-gradient(#000 0 0) content-box, 
        linear-gradient(#000 0 0);
    mask: 
        linear-gradient(#000 0 0) content-box, 
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate var(--anime-time) cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    opacity: 0.8;
    filter: blur(0.8px);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

/* Задаем цвета для разных карточек */
.card.card--photocrew::before {
    --card-color: var(--cyan);
    animation-delay: 0s;
}

.card.card--photo-studio::before {
    --card-color: var(--orange);
    animation-delay: -4s;
}

.card.card--web-studio::before {
    --card-color: #DAF560;
    animation-delay: -8s;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-head {
    display: grid;
}
.icon {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    /*max-height: 80px;*/
}
.card.card--web-studio .icon {
    height: 5rem;
    margin-left: calc(-1 * 3rem);
    /*max-height: 80px !important;*/
}
.card.card--web-studio .icon::before {
    content: '';
    display: inline-block;
    height: 2rem;
    /*max-height: 32px;*/
    background-color: #DAF560;
    width: 3rem;
}
.card.card--web-studio .icon img {
    /*max-height: 32px;*/
    margin-left: -0.0625rem;
    height: 2rem;
}
.icon img {
    height: 5rem;
    display: block;
    width: auto;
    max-height: 100%;
}

.photographer-icon {
    width: min(3vw, 40px);
    height: min(3vw, 40px);
}

.studio-icon img {
    height: 40px;
}

.web-icon {
    font-size: 24px;
}

.web-icon .just {
    color: var(--orange);
}

.web-icon .business {
    color: var(--text-color);
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1.4rem 0;
    text-transform: uppercase;
    letter-spacing: normal;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    margin: 0;
    flex: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    margin-top: 2vw;
    padding: 1.2rem 2rem;
    background: var(--button-bg);
    border-radius: 0;
    color: var(--button-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
    user-select: none;
    font-size: 1.1rem;
    line-height: normal;
}

.button:hover {
    opacity: 0.9;
}

.button::after {
    content: "→";
    margin-left: 8px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

/* Настраиваем задержки для каждой карточки */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    0% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Медиа-запросы */
@media (max-width: 2560px) {
    .icon {
        max-height: 80px;
    }
    .card.card--web-studio .icon {
        max-height: 80px !important;
    }
    .card.card--web-studio .icon::before {
        max-height: 32px;
    }
    .card.card--web-studio .icon img {
        max-height: 32px;
    }
}

@media (max-width: 1280px) {
    .card-container {
        width: 90vw;
    }
    
    .card {
        max-width: 600px;
        margin: 0 auto;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }

    .card.card--web-studio .icon {
        min-height: unset;
    }
    
    p {
        font-size: 1.2rem;
    }
}

.card-container::before,
.card-container::after {
    display: none;
}

@media screen and (max-width: 1024px) {
    .button {
        display: none;
    }
}

@media screen and (max-width: 920px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .icon {
        margin-bottom: 2.5rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    p {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    h1 {
        font-size: clamp(2rem, 13.5vw, 3rem);
        text-align: left;
    }
    h1 > span {
        font-weight: 400;
        font-size: clamp(1rem, 7vw, 1.5rem);
        line-height: 1;
        display: block;
        /*margin-bottom: 8px;*/
        margin-bottom: 4px;
    }
    .card-container {
        gap: 20px;
    }
    .card {
        padding: clamp(1.5rem, 3vw, 3rem);
    }
    .card-head {
        grid-template-columns: 1fr auto;
        gap: 8px;
        margin-bottom: clamp(1.2rem, 3vw, 3rem);
    }
    .card-head * {
        margin-bottom: 0;
    }
    .card-head h2 {
        font-size: clamp(1.25rem, 4vw, 1.8rem);
        align-self: center;
        order: -1
    }
    p {
        /*font-size: clamp(0.9rem, 2.5vw, 1.1rem);*/
        font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    }
    .card .card-head .icon {
        min-height: unset;
        align-self: center;
    }
    .card.card--photocrew .card-head .icon {
        height: clamp(1.875rem, 6vw, 3rem);
    }
    .card.card--photo-studio .card-head .icon {
        height: clamp(2.5rem, 10vw, 4rem);
    }
    .card.card--web-studio .card-head .icon {
        height: clamp(.875rem, 3.5vw, 2rem);
        margin: 0;
    }
    .card.card--web-studio .card-head .icon::before {
        height: 100%;
        width: clamp(1.5rem, 3vw, 3rem);
    }
    .card.card--web-studio .icon img {
        height: auto;
        max-height: 100%;
    }
}

/* Дополнительные оптимизации для мобильных */
@media (max-width: 480px) {
    header {
        margin-bottom: 3vh;
    }
    
    .card {
        padding: clamp(1.2rem, 5vw, 1.5rem);
    }
    .card.card--web-studio .card-head .icon::before {
        width: clamp(1.2rem, 5vw, 1.5rem);
    }
}

#stars, #stars2, #stars3,
#stars:after, #stars2:after, #stars3:after {
    display: none;
}

@keyframes animStar {
    from { }
    to { }
}

#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

/* Обновляем стили для фона */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}