* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
}

@font-face {
    font-family: 'Schiffbauer';
    src: url('../Assets/Schiffbauer.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #b1231d;
    border-radius: 0;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #d31c1c;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #b1231d #000;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #b1231d;
    z-index: 10000;
    transition: width 0.3s ease;
    width: 0%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    background-image: url("../Assets/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body * {
    cursor: default;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    cursor: default;
    user-select: none;
}

.header * {
    cursor: default;
    user-select: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    cursor: pointer !important;
    transition: color 0.3s ease;
    font-family: 'Unbounded', monospace;
    pointer-events: auto;
    user-select: none;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer !important;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: #fff;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    user-select: none;
}

.header-right {
    display: flex;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header-order-btn {
    background: #b1231d;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Unbounded', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    border: 3px solid #b1231d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-left: 1.5rem;
}

.header-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.order-icon {
    width: 18px;
    height: 18px;
    fill: #000;
    transition: fill 0.2s ease-in-out;
}

.header-order-btn:hover {
    background: transparent;
    color: #b1231d;
    box-shadow: 0px 10px 40px -2px rgba(0, 11, 48, 0.3);
}

.header-order-btn:hover .order-icon {
    fill: #b1231d;
}

.header-order-btn:active {
    transform: translateY(0);
}

.header-social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.header-social-btn {
    width: 46px;
    height: 46px;
    background: transparent;
    border: 3px solid #b1231d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.header-social-btn svg {
    width: 22px;
    height: 22px;
    fill: #b1231d;
    transition: fill 0.2s ease-in-out;
}

.header-social-btn:hover {
    background: #b1231d;
    box-shadow: 0px 10px 40px -2px rgba(0, 11, 48, 0.3);
}

.header-social-btn:hover svg {
    fill: #000;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

.hero-section * {
    cursor: default;
    user-select: none;
}


.hero-container {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 2rem;
    height: 100%;
    cursor: default;
    user-select: none;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    cursor: default;
    user-select: none;
    align-self: flex-start;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.hero-subtitle::before {
    content: '///';
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 0.8s steps(11) 0s forwards;
}

.cursor {
    opacity: 1;
    animation: cursorDuringTyping 0.8s step-end 0s forwards, cursorBlink 1s step-end 3.4s infinite;
}

.dots {
    opacity: 0;
    animation: dotsAppear 0.8s ease-in-out 0.8s infinite, dotsDisappear 0.1s linear 3.4s forwards;
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes cursorDuringTyping {
    0%, 99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes dotsAppear {
    0% {
        content: '';
        opacity: 0;
    }
    33% {
        content: '.';
        opacity: 1;
    }
    66% {
        content: '..';
        opacity: 1;
    }
    100% {
        content: '...';
        opacity: 1;
    }
}

@keyframes dotsDisappear {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.blink-dot {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-title {
    font-family: 'Schiffbauer', 'Teko', sans-serif;
    font-size: clamp(5rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 0.02em;
    text-transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: default;
    user-select: none;
    position: relative;
    z-index: 0;
    overflow: visible;
}

.title-line {
    display: block;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.title-line:nth-child(2) {
    color: #b1231d;
    margin-bottom: -0.2em;
    padding-bottom: 0.2em;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(177, 35, 29, 0.4));
    text-shadow:
        0 0 10px rgba(177, 35, 29, 0.3),
        2px 2px 0px rgba(255, 0, 0, 0.2),
        -2px -2px 0px rgba(0, 255, 255, 0.15);
    animation: glitchAppear 0.8s ease-out 1s both, y2kGlitch 3s infinite 1.8s;
    overflow: visible;
}

@keyframes glitchAppear {
    0% {
        opacity: 0;
        transform: translate(0);
    }
    2% {
        opacity: 1;
        transform: translate(0);
    }
    4% {
        transform: translate(-8px, 0);
        text-shadow:
            3px 0 0 rgba(255, 0, 0, 0.7),
            -3px 0 0 rgba(0, 255, 255, 0.7);
    }
    6% {
        transform: translate(8px, 0);
    }
    8% {
        transform: translate(-5px, 0);
        text-shadow:
            -2px 0 0 rgba(255, 0, 0, 0.6),
            2px 0 0 rgba(0, 255, 255, 0.6);
    }
    10% {
        transform: translate(5px, 0);
    }
    12% {
        transform: translate(-3px, 0);
        text-shadow:
            2px 0 0 rgba(255, 0, 0, 0.5),
            -2px 0 0 rgba(0, 255, 255, 0.5);
    }
    14% {
        transform: translate(3px, 0);
    }
    16% {
        transform: translate(-2px, 0);
        text-shadow:
            1px 0 0 rgba(255, 0, 0, 0.4),
            -1px 0 0 rgba(0, 255, 255, 0.4);
    }
    18% {
        transform: translate(2px, 0);
    }
    20% {
        transform: translate(-1px, 0);
    }
    22%, 100% {
        transform: translate(0);
        text-shadow:
            0 0 10px rgba(177, 35, 29, 0.3),
            2px 2px 0px rgba(255, 0, 0, 0.2),
            -2px -2px 0px rgba(0, 255, 255, 0.15);
        opacity: 1;
    }
}

.title-line:nth-child(2)::before {
    content: 'port';
    position: absolute;
    top: 0;
    left: 0;
    color: #ff0000;
    opacity: 0.2;
    filter: blur(2px);
    animation: y2kShift 2s infinite alternate;
}

@keyframes y2kGlitch {
    0%, 90%, 100% {
        transform: translate(0);
        text-shadow:
            0 0 10px rgba(177, 35, 29, 0.3),
            2px 2px 0px rgba(255, 0, 0, 0.2),
            -2px -2px 0px rgba(0, 255, 255, 0.15);
    }
    92% {
        transform: translate(-2px, 1px);
        text-shadow:
            2px 0 0 rgba(255, 0, 0, 0.5),
            -2px 0 0 rgba(0, 255, 255, 0.25);
    }
    94% {
        transform: translate(2px, -1px);
        text-shadow:
            -2px 0 0 rgba(255, 0, 0, 0.5),
            2px 0 0 rgba(0, 255, 255, 0.25);
    }
    96% {
        transform: translate(-1px, 2px);
        text-shadow:
            1px 0 0 rgba(255, 0, 0, 0.4),
            -1px 0 0 rgba(0, 255, 255, 0.2);
    }
}

@keyframes y2kShift {
    0% {
        transform: translate(-1px, -1px);
    }
    100% {
        transform: translate(1px, 1px);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.title-line:last-child {
    margin-right: -0.02em;
    color: #fff;
    filter: blur(3px);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: fadeInFolio 1s ease-out 1.8s both;
}

@keyframes fadeInFolio {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 0;
    cursor: default;
    user-select: none;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    cursor: default;
    pointer-events: none;
}

.image-wrapper::after {
    display: none;
}

.hero-image {
    height: 92vh;
    width: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    position: relative;
    z-index: 1;
    animation: slideUpImage 1s ease-out 2.3s both;
}

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

.code-overlay {
    position: absolute;
    bottom: 4rem;
    right: 2rem;
    width: auto;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    animation: scaleUp 0.6s ease-out 2.8s both;
    cursor: default;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
}

@keyframes scaleUp {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
}

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

.code-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
    cursor: default;
    pointer-events: none;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-filename {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.code-content {
    padding: 0.75rem 0.75rem 0.75rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.5;
    cursor: text !important;
    user-select: text !important;
}

.code-content * {
    cursor: text !important;
    user-select: text !important;
}

.code-line {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.15rem 0;
}

.code-line.indent .code-text {
    padding-left: 1.5rem;
}

.line-number {
    min-width: 1.75rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    user-select: none;
    padding-left: 0.4rem;
}

.code-text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.keyword {
    color: #ff79c6;
    font-weight: 600;
}

.variable {
    color: #8be9fd;
}

.operator {
    color: #ff79c6;
}

.string {
    color: #f1fa8c;
}

.number {
    color: #bd93f9;
    font-weight: 600;
}

.punctuation {
    color: #f8f8f2;
}

.portfolio-section {
    min-height: 100vh;
    padding: 3rem 2rem;
    background: #000;
    margin-top: 0;
}

.experience-section {
    min-height: 60vh;
    padding: 4rem 2rem;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.service-paused-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0;
    color: #ffc107;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    user-select: none;
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(177, 35, 29, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(177, 35, 29, 0.2);
}

.experience-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    user-select: none;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    user-select: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-years {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b1231d;
    margin-bottom: 1rem;
    user-select: none;
    font-family: 'JetBrains Mono', monospace;
}

.experience-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    user-select: none;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.toggle-prices {
    display: none;
}

.show-all-services {
    display: block;
    width: 100%;
    padding: 0;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
}

.show-all-services:hover {
    color: rgba(255, 255, 255, 0.7);
}

.price-item-hidden {
    display: none !important;
}

.price-list.show-all .price-item-hidden {
    display: flex !important;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(177, 35, 29, 0.3);
    transform: translateX(5px);
}

.service-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.service-price {
    font-size: 0.9rem;
    color: #b1231d;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.price-item-single {
    background: rgba(177, 35, 29, 0.08);
    border-color: rgba(177, 35, 29, 0.2);
    padding: 1rem 1.25rem;
}

.price-item-single:hover {
    background: rgba(177, 35, 29, 0.12);
    border-color: rgba(177, 35, 29, 0.4);
}

.price-item-single .service-name {
    font-size: 1rem;
    font-weight: 600;
}

.price-item-single .service-price {
    font-size: 1rem;
}

.price-item-centered {
    justify-content: center;
}

.price-item-centered .service-price {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
}

.price-item-web {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    position: relative;
}

.web-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-price-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.price-item-web:hover .web-price-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.price-item-recommended {
    background: rgba(177, 35, 29, 0.1);
    border-color: rgba(177, 35, 29, 0.4);
    border-width: 2px;
}

.price-item-recommended:hover {
    background: rgba(177, 35, 29, 0.15);
    border-color: rgba(177, 35, 29, 0.6);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #b1231d;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.service-price-main {
    font-size: 1.1rem;
    color: #b1231d;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.service-price-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: #fff;
    cursor: default;
    user-select: none;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    flex-wrap: wrap;
    max-width: calc(200px * 4 + 1rem * 3);
}

.filter-btn {
    padding: 1.25rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-family: 'Unbounded', sans-serif;
    user-select: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex: 1;
    min-width: 200px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    cursor: pointer !important;
}

.filter-btn.active {
    background: rgba(177, 35, 29, 0.2);
    border-color: rgba(177, 35, 29, 0.5);
    color: #b1231d;
}

.search-wrapper {
    width: 100%;
    max-width: calc(200px * 4 + 1rem * 3);
    margin: 0 auto 3rem auto;
}

.search-container {
    position: relative;
    width: 100%;
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.search-container * {
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.search-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    min-height: 0;
}

.search-tags:empty {
    display: none;
}

.search-tag {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(177, 35, 29, 0.2);
    border: 1px solid rgba(177, 35, 29, 0.5);
    border-radius: 16px;
    color: #b1231d;
    cursor: pointer !important;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: auto;
}

.search-tag:hover {
    background: rgba(177, 35, 29, 0.3);
    transform: translateY(-1px);
    cursor: pointer !important;
}

.search-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    cursor: text !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    cursor: default !important;
    z-index: 1;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer !important;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 2;
}

.search-clear:hover {
    color: #b1231d;
    transform: translateY(-50%) scale(1.1);
    cursor: pointer !important;
}

.search-clear.active {
    display: flex;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.5rem;
}

.search-input:focus ~ .search-suggestions {
    border-radius: 12px;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer !important;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer !important;
}

.suggestion-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.suggestion-type.tag {
    background: rgba(177, 35, 29, 0.2);
    color: #b1231d;
}

.suggestion-type.title {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-text {
    flex: 1;
    color: #fff;
    font-size: 0.95rem;
}

.suggestion-text .highlight {
    color: #b1231d;
    font-weight: 600;
}

.tags-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto 3rem auto;
    flex-wrap: wrap;
    max-width: calc(200px * 4 + 1rem * 3);
}

.tag-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    user-select: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.tag-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    cursor: pointer !important;
}

.tag-btn.active {
    background: rgba(177, 35, 29, 0.2);
    border-color: rgba(177, 35, 29, 0.5);
    color: #b1231d;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    cursor: default;
    user-select: none;
    margin-bottom: 4rem;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: rgba(177, 35, 29, 0.1);
    border: 2px solid rgba(177, 35, 29, 0.3);
    border-radius: 50px;
    color: #b1231d;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Unbounded', sans-serif;
}

.load-more-btn:hover {
    background: rgba(177, 35, 29, 0.2);
    border-color: rgba(177, 35, 29, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 35, 29, 0.2);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(177, 35, 29, 0.9), rgba(220, 50, 40, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(177, 35, 29, 0.3);
    backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@keyframes bounce-in {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, rgba(220, 50, 40, 1), rgba(255, 70, 60, 1));
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(177, 35, 29, 0.6), 0 0 30px rgba(177, 35, 29, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    animation: none;
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top svg {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.scroll-to-top:hover svg {
    transform: translateY(-3px) scale(1.1);
    animation: arrow-bounce 0.6s ease infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(-3px) scale(1.1);
    }
    50% {
        transform: translateY(-6px) scale(1.1);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

.masonry-grid {
    column-count: 4;
    column-gap: 1rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease, margin 0.3s ease;
}

.masonry-item.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.masonry-item img,
.masonry-item video {
    transition: all 0.3s ease;
}

.masonry-item img,
.masonry-item video,
.masonry-item iframe {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover img,
.masonry-item:hover video,
.masonry-item:hover iframe {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.youtube-preview {
    display: block;
    position: relative;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}

.youtube-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.youtube-preview:hover .youtube-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* TikTok preview styles */
.tiktok-preview {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tiktok-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tiktok-preview:hover img {
    transform: scale(1.05);
}

.tiktok-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tiktok-preview:hover .tiktok-overlay {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.tiktok-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.tiktok-placeholder span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.tiktok-preview:hover .tiktok-placeholder {
    transform: scale(1.1);
}

.tiktok-embed-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.tiktok-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tiktok-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.tiktok-embed-placeholder span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.tiktok-link:hover .tiktok-embed-placeholder {
    transform: scale(1.1);
}

.tiktok-embed-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tiktok-embed-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tiktok-embed-overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.tiktok-link:hover .tiktok-embed-overlay {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Instagram preview styles */
.instagram-preview {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.instagram-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-preview:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.instagram-preview:hover .instagram-overlay {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.instagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.instagram-placeholder span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.instagram-preview:hover .instagram-placeholder {
    transform: scale(1.1);
}

.instagram-embed-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.instagram-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.instagram-embed-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.instagram-embed-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.instagram-embed-overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.instagram-link:hover .instagram-embed-overlay {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.instagram-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.instagram-embed-placeholder span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.instagram-link:hover .instagram-embed-placeholder {
    transform: scale(1.1);
}


.work-clickable {
    cursor: pointer;
}

.work-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.work-title-bottom {
    padding: 12px 0 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.work-share-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px 16px 8px 8px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-share-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.work-share-btn:active {
    transform: scale(0.95);
}

/* Work Popup */
.work-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.work-popup * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.work-popup.active {
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.popup-content {
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.work-popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    cursor: pointer !important;
}

.popup-media {
    padding: 3rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default !important;
}

.popup-media * {
    cursor: default !important;
}

.popup-media img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.popup-media video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    cursor: default !important;
}

.popup-media iframe {
    width: 80vw;
    height: 45vw;
    max-width: 1200px;
    max-height: 675px;
    border-radius: 8px;
}

.popup-title {
    padding: 1rem 2rem 2rem 2rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
}

.popup-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2rem 2rem 2rem;
    cursor: default !important;
}

.popup-footer * {
    cursor: default !important;
}

.popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-footer .popup-title {
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: default !important;
}

.popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popup-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer !important;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    user-select: none;
}

.popup-tag:hover {
    background: rgba(177, 35, 29, 0.2);
    border-color: rgba(177, 35, 29, 0.5);
    color: #b1231d;
    transform: translateY(-1px);
    cursor: pointer !important;
}

.popup-share-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-share-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.popup-share-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .popup-media {
        padding: 2.5rem 1rem 0.5rem 1rem;
    }

    .popup-title {
        font-size: 1.2rem;
        padding: 0.5rem 1rem 1.5rem 1rem;
    }

    .popup-footer {
        padding: 0 1rem 1.5rem 1rem;
        align-items: flex-start;
    }

    .popup-footer .popup-title {
        font-size: 1.2rem;
    }

    .popup-tags {
        gap: 0.4rem;
    }

    .popup-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .popup-media iframe {
        width: 90vw;
        height: 50.625vw;
    }
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    border-radius: 12px;
}

.masonry-item video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    border-radius: 12px;
}

.masonry-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 12px;
}

/* Отключаем панели инструментов браузеров */
.masonry-item img::before,
.masonry-item img::after {
    display: none !important;
}

.masonry-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }

    .filter-buttons {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .filter-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
        margin-bottom: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        padding: 0.85rem 2.75rem 0.85rem 2.75rem;
        font-size: 0.95rem;
    }

    .search-icon {
        left: 0.85rem;
        width: 18px;
        height: 18px;
    }

    .search-clear {
        right: 0.85rem;
    }

    .search-clear svg {
        width: 14px;
        height: 14px;
    }

    .search-tags {
        margin-top: 0.5rem;
        gap: 0.4rem;
    }

    .search-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .search-tag-remove svg {
        width: 10px;
        height: 10px;
    }

    .tags-container {
        max-width: 100%;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .tag-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .search-suggestions {
        max-height: 200px;
    }

    .suggestion-item {
        padding: 0.6rem 0.85rem;
    }

    .suggestion-type {
        font-size: 0.7rem;
    }

    .suggestion-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 0.75rem 1.5rem;
    }

    .logo-img {
        height: 35px;
    }

    .hero-section {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }

    .hero-left {
        justify-content: center;
        padding: 2rem 1rem 0.5rem 1rem;
        order: 1;
        align-items: center;
        flex-shrink: 0;
    }

    .hero-right {
        justify-content: center;
        padding: 0;
        order: 2;
        position: static;
        flex-shrink: 1;
        min-height: 0;
    }

    .hero-title {
        align-items: center;
        font-size: clamp(4rem, 10vw, 8rem);
    }

    .hero-subtitle {
        align-self: center;
        font-size: 0.85rem;
    }

    .image-wrapper {
        height: 50vh;
        max-height: 50vh;
        position: static;
    }

    .hero-image {
        height: 50vh;
        max-height: 50vh;
    }

    .hero-image {
        height: 60vh;
    }

    .code-overlay {
        position: absolute;
        max-width: 50%;
        bottom: 2rem;
        right: 2rem;
        left: auto;
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .portfolio-section {
        padding: 2.5rem 1.5rem;
    }

    .experience-section {
        padding: 3.5rem 1.5rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .experience-card {
        padding: 2.5rem 1.75rem;
    }

    .experience-icon {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }

    .experience-title {
        font-size: 1.6rem;
    }

    .experience-years {
        font-size: 1.05rem;
        margin-bottom: 0.85rem;
    }

    .experience-description {
        font-size: 0.95rem;
    }

    .toggle-prices {
        display: block;
        width: 100%;
        padding: 0;
        margin-top: 1rem;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.85rem;
        font-weight: 400;
        font-family: 'JetBrains Mono', monospace;
        cursor: pointer;
        transition: color 0.3s ease;
        text-align: center;
    }

    .toggle-prices:hover {
        color: rgba(255, 255, 255, 0.7);
        background: transparent;
        border: none;
    }

    .toggle-prices.active {
        background: transparent;
        color: rgba(255, 255, 255, 0.5);
    }

    .experience-card {
        padding: 2.5rem 1.75rem;
        cursor: pointer;
    }

    .price-list {
        gap: 0.65rem;
        margin-top: 1.35rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    }

    .price-list.active {
        max-height: 2000px;
        opacity: 1;
        margin-top: 1.35rem;
    }

    .price-item {
        padding: 0.7rem 0.9rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .price-item:hover {
        transform: none;
    }

    .price-item-web {
        flex-direction: column;
        align-items: stretch;
    }

    .web-price-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .service-name {
        font-size: 0.9rem;
    }

    .service-price {
        font-size: 0.85rem;
    }

    .web-price-description {
        font-size: 0.82rem;
    }

    .recommended-badge {
        font-size: 0.68rem;
        padding: 0.25rem 0.7rem;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 953px) {
    .hero-section {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        padding-top: 80px;
    }

    .hero-container {
        height: auto;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .hero-left {
        padding: 0.5rem 1rem;
        flex-shrink: 0;
    }

    .hero-right {
        flex-shrink: 0;
        min-height: 0;
        display: flex;
        align-items: flex-start;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }

    .image-wrapper {
        height: auto;
        max-height: none;
    }

    .hero-image {
        height: 55vh;
        max-height: 55vh;
        object-fit: contain;
        object-position: center top;
    }

    .code-overlay {
        bottom: 1rem;
        right: 1rem;
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 30px;
    }

    .burger-menu {
        display: flex;
    }

    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-right.active {
        right: 0;
    }

    .lang-switcher {
        flex-direction: row;
        gap: 0.5rem;
    }

    .lang-separator {
        display: inline;
    }

    .lang-btn {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }

    .header-order-btn {
        flex-direction: row;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-section {
        padding: 1rem;
        height: auto;
        min-height: 100vh;
        position: relative;
    }

    .hero-container {
        gap: 1.5rem;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        padding: 2rem 0.5rem 0.5rem 0.5rem;
        order: 1;
        align-items: center;
    }

    .hero-right {
        order: 2;
        position: static;
    }

    .hero-title {
        font-size: clamp(6rem, 18vw, 12rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .image-wrapper {
        height: 50vh;
        position: static;
    }

    .hero-image {
        height: 50vh;
    }

    .code-overlay {
        position: absolute;
        max-width: 60%;
        bottom: -3rem;
        right: 1rem;
        left: auto;
        transform: scale(0.67);
        transform-origin: bottom right;
        font-size: 0.65rem;
    }

    .code-content {
        font-size: 0.65rem;
        padding: 0.5rem 0.5rem 0.5rem 0.2rem;
    }

    .code-line.indent .code-text {
        padding-left: 0.8rem;
    }

    .line-number {
        min-width: 1.25rem;
        font-size: 0.6rem;
    }

    .code-filename {
        font-size: 0.6rem;
    }

    .code-header {
        padding: 0.4rem 0.6rem;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .portfolio-section {
        padding: 2rem 1rem;
    }

    .experience-section {
        padding: 3rem 1rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .experience-card {
        padding: 2rem 1.5rem;
    }

    .experience-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .experience-title {
        font-size: 1.5rem;
    }

    .experience-years {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .experience-description {
        font-size: 0.9rem;
    }

    .price-list {
        gap: 0.6rem;
        margin-top: 1.25rem;
    }

    .price-item {
        padding: 0.65rem 0.85rem;
    }

    .service-name {
        font-size: 0.85rem;
    }

    .service-price {
        font-size: 0.8rem;
    }

    .web-price-description {
        font-size: 0.78rem;
    }

    .recommended-badge {
        font-size: 0.65rem;
        padding: 0.22rem 0.65rem;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .masonry-grid {
        column-count: 2;
        gap: 0.75rem;
    }

    .masonry-item {
        margin-bottom: 0.75rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .filter-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        padding: 0.75rem 2.5rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 0.75rem;
        width: 16px;
        height: 16px;
    }

    .search-clear {
        right: 0.75rem;
    }

    .search-clear svg {
        width: 14px;
        height: 14px;
    }

    .search-tags {
        margin-top: 0.5rem;
        gap: 0.35rem;
    }

    .search-tag {
        padding: 0.3rem 0.55rem;
        font-size: 0.7rem;
    }

    .search-tag-remove svg {
        width: 10px;
        height: 10px;
    }

    .tags-container {
        max-width: 100%;
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .tag-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .search-suggestions {
        max-height: 200px;
    }

    .suggestion-item {
        padding: 0.6rem 0.75rem;
    }

    .suggestion-type {
        font-size: 0.65rem;
    }

    .suggestion-text {
        font-size: 0.8rem;
    }

    .work-title-bottom {
        font-size: 0.85rem;
        padding: 10px 0 10px 12px;
    }

    .work-share-btn {
        padding: 6px 12px 6px 6px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .logo-img {
        height: 28px;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .lang-separator {
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 0.5rem;
        position: relative;
    }

    .hero-right {
        order: 2;
        position: static;
    }

    .image-wrapper {
        height: 45vh;
        position: static;
    }

    .code-overlay {
        position: absolute;
        max-width: 63%;
        bottom: -3rem;
        right: 0.75rem;
        left: auto;
        transform: scale(0.67);
        transform-origin: bottom right;
        font-size: 0.6rem;
    }

    .code-content {
        font-size: 0.6rem;
        padding: 0.4rem 0.4rem 0.4rem 0.15rem;
    }

    .code-line.indent .code-text {
        padding-left: 0.6rem;
    }

    .code-text {
        gap: 0.25rem;
    }

    .line-number {
        min-width: 1rem;
        font-size: 0.55rem;
    }

    .code-filename {
        font-size: 0.55rem;
    }

    .code-header {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .portfolio-section {
        padding: 1.5rem 0.75rem;
    }

    .experience-section {
        padding: 2.5rem 0.75rem;
    }

    .experience-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .experience-card {
        padding: 1.75rem 1.25rem;
    }

    .experience-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .experience-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .experience-years {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }

    .experience-description {
        font-size: 0.85rem;
    }

    .price-list {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .price-item {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .service-name {
        font-size: 0.8rem;
    }

    .service-price {
        font-size: 0.75rem;
    }

    .web-price-description {
        font-size: 0.75rem;
    }

    .recommended-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
        top: -8px;
        right: 8px;
    }

    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1.25rem;
    }

    .masonry-grid {
        column-count: 2;
        gap: 0.75rem;
    }

    .masonry-item {
        margin-bottom: 0.75rem;
    }

    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-width: 100%;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .search-wrapper {
        margin-bottom: 1.25rem;
    }

    .search-input {
        padding: 0.7rem 2.25rem 0.7rem 2.25rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .search-icon {
        left: 0.65rem;
        width: 15px;
        height: 15px;
    }

    .search-clear {
        right: 0.65rem;
    }

    .search-clear svg {
        width: 13px;
        height: 13px;
    }

    .search-tags {
        gap: 0.3rem;
    }

    .search-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .tags-container {
        gap: 0.35rem;
        margin-bottom: 1.25rem;
    }

    .tag-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.7rem;
    }

    .search-suggestions {
        max-height: 180px;
        border-radius: 10px;
    }

    .suggestion-item {
        padding: 0.5rem 0.65rem;
    }

    .suggestion-type {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .suggestion-text {
        font-size: 0.75rem;
    }

    .work-title-bottom {
        font-size: 0.8rem;
        padding: 8px 0 8px 10px;
    }

    .work-share-btn {
        padding: 5px 10px 5px 5px;
    }

    .work-share-btn svg {
        width: 18px;
        height: 18px;
    }

    .popup-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 10px;
    }

    .popup-close {
        top: 0.4rem;
        right: 0.4rem;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .popup-media {
        padding: 2rem 0.75rem 0.4rem 0.75rem;
    }

    .popup-media img {
        max-height: 60vh;
        border-radius: 6px;
    }

    .popup-media video {
        max-height: 60vh;
        border-radius: 6px;
    }

    .popup-media iframe {
        width: 95vw;
        height: 53.4375vw;
        border-radius: 6px;
    }

    .popup-title {
        font-size: 1.1rem;
        padding: 0.4rem 0.75rem 1.25rem 0.75rem;
    }

    .popup-footer {
        padding: 0 0.75rem 1.25rem 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .popup-footer .popup-title {
        font-size: 1.1rem;
    }

    .popup-tags {
        gap: 0.35rem;
    }

    .popup-tag {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
    }

    .popup-share-btn {
        align-self: flex-end;
    }

    .copy-notification {
        bottom: 0.75rem;
        padding: 0.65rem 1.1rem;
        font-size: 0.8rem;
        max-width: 92%;
        border-radius: 6px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.6rem;
    }

    .code-overlay {
        font-size: 0.55rem;
    }

    .code-content {
        font-size: 0.55rem;
    }

    .filter-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 0.8rem;
    }
}

/* Samsung S8+, Galaxy S9+, и подобные узкие высокие экраны */
@media (min-width: 361px) and (max-width: 420px) and (min-height: 740px) {
    .hero-title {
        font-size: clamp(5.5rem, 17vw, 11rem) !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }
}

/* Galaxy Z Fold 5 и другие складные телефоны (узкий экран в сложенном виде) */
@media (min-width: 280px) and (max-width: 360px) and (min-height: 700px) {
    .hero-title {
        font-size: clamp(4.5rem, 15vw, 9rem) !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
    }

    .code-overlay {
        max-width: 70%;
    }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-left {
        order: 1;
        align-items: flex-end;
    }

    .hero-right {
        order: 2;
    }

    .hero-title {
        font-size: clamp(3.5rem, 8vw, 7rem);
        align-items: flex-end;
    }

    .image-wrapper {
        height: 80vh;
    }

    .hero-image {
        height: 80vh;
    }

    .code-overlay {
        bottom: 2rem;
        right: 1.5rem;
        transform: none;
        max-width: 340px;
    }

    .masonry-grid {
        column-count: 3;
    }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .image-wrapper {
        height: 85vh;
    }

    .hero-image {
        height: 85vh;
    }

    .code-overlay {
        bottom: 1.5rem;
        right: 1rem;
        transform: none;
        max-width: 280px;
    }
}

/* Уведомление о копировании */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(177, 35, 29, 0.95);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .copy-notification {
        bottom: 1.5rem;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .copy-notification {
        bottom: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 90%;
    }
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.popup-content {
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Order popup styles */
.order-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
    user-select: none;
    cursor: default;
}

.order-popup-overlay.active {
    display: flex !important;
}

.order-popup-content {
    background: #1a1a1a;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50"><path d="M25 10l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z" fill="%23666666" opacity="0.15"/></svg>');
    background-size: 50px 50px;
    border: 3px solid #b1231d;
    padding: 0;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: popupSlide 0.3s ease-out, starsMove 10s linear infinite;
    display: flex;
    overflow: hidden;
    user-select: none;
    cursor: default;
}

@media (max-width: 1024px) {
    .order-popup-content {
        max-width: 90%;
        width: 90%;
    }
}

@keyframes starsMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* FunPay Section */
.funpay-section {
    padding: 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.funpay-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
}

.funpay-rating-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 600px;
    flex-shrink: 0;
}

.funpay-reviews-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.reviews-slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
    flex: 1;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 180px;
    max-height: 180px;
}
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    min-height: 24px;
    gap: 0.75rem;
}

.review-author-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #b1231d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-avatar svg {
    color: #000;
    width: 24px;
    height: 24px;
}

.review-author {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    min-width: 0;
}

.review-stars {
    flex-shrink: 0;
}

.review-category {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

@media (max-width: 1000px) {
    .review-category {
        display: none;
    }
}

.review-stars {
    display: flex;
    gap: 0.15rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.review-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funpay-rating-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(177, 35, 29, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(177, 35, 29, 0.2);
}

.funpay-rating-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.funpay-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b1231d 0%, #8a1b17 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.funpay-logo svg {
    width: 36px;
    height: 36px;
    fill: #000;
}

.funpay-rating-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.funpay-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.funpay-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.2rem;
}

.funpay-rating-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.funpay-arrow {
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.funpay-rating-card:hover .funpay-arrow {
    stroke: #b1231d;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .funpay-rating-card {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }

    .funpay-logo {
        width: 50px;
        height: 50px;
    }

    .funpay-rating-content {
        gap: 1rem;
    }

    .funpay-title {
        font-size: 1.2rem;
    }

    .funpay-rating-text {
        font-size: 0.85rem;
    }

    .funpay-arrow {
        transform: rotate(0deg);
        width: 20px;
        height: 20px;
    }

    .funpay-rating-card:hover .funpay-arrow {
        transform: translateX(5px);
    }

    .funpay-container {
        flex-direction: column;
        gap: 2rem;
    }

    .funpay-rating-card {
        max-width: 100%;
        width: 100%;
    }

    .funpay-reviews-slider {
        width: 100%;
    }

    .review-card {
        padding: 1rem;
        min-height: 140px;
        max-height: 140px;
    }

    .review-stars {
        top: 0.75rem;
        right: 1rem;
        font-size: 0.8rem;
    }

    .review-author {
        font-size: 0.9rem;
        padding-right: 70px;
    }

    .review-category {
        display: none;
    }

    .review-text {
        font-size: 0.85rem;
    }
}

.order-popup-left {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-popup-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.order-popup-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    user-select: none;
    pointer-events: none;
}

.order-popup-easter-egg {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.order-popup-easter-egg:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
    opacity: 1;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

.easter-egg-dialog {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: #b1231d;
    color: #000;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(177, 35, 29, 0.4);
}

.easter-egg-dialog::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #b1231d;
}

.easter-egg-dialog.show {
    opacity: 1;
    transform: translateY(0);
}

.emoji-shake {
    display: inline-block;
    animation: shake-emoji-text 1s ease-in-out infinite;
}

@keyframes shake-emoji-text {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.05); }
    50% { transform: rotate(8deg) scale(1.1); }
    75% { transform: rotate(-8deg) scale(1.05); }
}

.order-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
    user-select: none;
}

.order-popup-close:hover {
    color: #b1231d;
}

.order-popup-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    user-select: none;
}

.order-popup-title-icon {
    width: 32px;
    height: 32px;
    fill: #b1231d;
}

.order-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    user-select: none;
}

@media (max-width: 768px) {
    .order-popup-content {
        flex-direction: row;
    }

    .order-popup-left {
        padding: 2rem;
    }

    .order-popup-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .order-popup-title-icon {
        width: 32px;
        height: 32px;
    }

    .order-popup-right {
        min-height: auto;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 0;
    }

    .order-popup-image {
        max-width: 100%;
    }

    .order-popup-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .order-popup-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .order-popup-btn-header {
        gap: 0.75rem;
    }

    .order-popup-icon {
        width: 24px;
        height: 24px;
    }

    .order-popup-btn-title {
        font-size: 1rem;
    }

    .order-popup-btn-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .order-popup-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .order-popup-left {
        padding: 1.5rem 1.25rem;
        order: 2;
    }

    .order-popup-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .order-popup-title-icon {
        width: 24px;
        height: 24px;
    }

    .order-popup-right {
        order: 1;
        min-height: 180px;
        max-height: 200px;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 0.75rem 0.75rem 0.75rem;
    }

    .order-popup-image {
        max-width: 85%;
        max-height: 180px;
        mask-image:
            linear-gradient(to bottom, black 50%, transparent 100%),
            linear-gradient(to right, black 60%, transparent 100%);
        -webkit-mask-image:
            linear-gradient(to bottom, black 50%, transparent 100%),
            linear-gradient(to right, black 60%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-composite: source-in;
    }

    .order-popup-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
    }

    .order-popup-btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .order-popup-btn-header {
        gap: 0.5rem;
    }

    .order-popup-icon {
        width: 20px;
        height: 20px;
    }

    .order-popup-btn-title {
        font-size: 0.9rem;
    }

    .order-popup-btn-subtitle {
        font-size: 0.7rem;
    }

    .order-popup-buttons {
        gap: 0.75rem;
    }
}

.order-popup-btn {
    padding: 1rem;
    background: #b1231d;
    color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border: 3px solid #b1231d;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.order-popup-btn-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-popup-icon {
    width: 24px;
    height: 24px;
    fill: #000;
    flex-shrink: 0;
}

.order-popup-btn:hover {
    background: transparent;
    color: #b1231d;
    box-shadow: 0px 10px 40px -2px rgba(0, 11, 48, 0.3);
}

.order-popup-btn:hover .order-popup-icon {
    fill: #b1231d;
}

.order-popup-btn-title {
    font-size: 1rem;
    font-weight: 500;
}

.order-popup-btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem 1.5rem;
    border-top: 2px solid #b1231d;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #b1231d;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(177, 35, 29, 0.3);
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright,
.footer-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-author a {
    color: #b1231d;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-author a:hover {
    color: #d31c1c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}
