@font-face {
    font-family: 'FixelText';
    src: url('FixelAll/FixelText/FixelText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FixelText';
    src: url('FixelAll/FixelText/FixelText-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'FixelText';
    src: url('FixelAll/FixelText/FixelText-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'FixelText';
    src: url('FixelAll/FixelText/FixelText-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'FixelText';
    src: url('FixelAll/FixelText/FixelText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'FixelText', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf6f0 50%, #f0f4ff 100%);
}

@media (min-width: 721px) {
    body {
        background-attachment: fixed;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3561C0, #254599);
    border-radius: 4px;
}

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

::selection {
    background: #3561C0;
    color: #fff;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(53, 97, 192, 0.08);
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: 0 1px 25px rgba(53, 97, 192, 0.12);
}

.mainNav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 20px;
    padding-inline-start: 0px;
    margin: 0;
    padding: 10px 0;
}

.mainNav li {
    font-size: 17px;
    text-decoration: none;
    font-weight: 550;
    position: relative;
}

.mainNav a {
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 6px 4px;
}

.mainNav a:hover {
    color: #3561C0;
}

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

.nav-mob {
    display: none;
}


.logo-d img {
    margin-left: 30px;
    margin-right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-d img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.2);
}

.logo-m img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.nav-mob .join-a h2 {
    font-size: 35px;
    font-weight: 700;
    color: #3561C0;
    margin: 0;
}

.category-slider {
    display: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    body {
        margin: 0;
    }

    header {
        position: sticky;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: none;
    }

    header:hover {
        box-shadow: 0 1px 20px rgba(53, 97, 192, 0.08);
    }

    .mainNav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 105;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        list-style: none;
        text-align: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 0;
        padding: 0;
        animation: fadeInDown 0.2s ease;
    }

    .mainNav li {
        font-size: 22px;
    }

    .mainNav a {
        color: #222;
        padding: 10px 20px;
    }

    .mainNav a::after {
        bottom: 4px;
        height: 2px;
    }

    .mainNav.active {
        display: flex;
    }

    .mainNav .logo-d {
        display: none;
    }

    .logo-d img {
        transition: none;
    }

    .logo-d img:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-mob {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 110;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
    }

    .category-slider {
        display: flex;
        gap: 12px;
        padding: 10px 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .category-slider::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        background: rgba(255, 255, 255, 0.85);
        padding: 6px 12px 6px 6px;
        border-radius: 30px;
    }

    .category-chip:active {
        transform: scale(0.95);
    }

    .category-chip-icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e8edf5, #f0f4ff);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(53, 97, 192, 0.1);
        transition: box-shadow 0.2s ease, background 0.2s ease;
        overflow: hidden;
    }

    .category-chip.active .category-chip-icon {
        background: linear-gradient(135deg, #3561C0, #4A7BE0);
        box-shadow: 0 4px 14px rgba(53, 97, 192, 0.3);
    }

    .category-chip-icon svg {
        width: 26px;
        height: 26px;
    }

    .category-chip-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .category-chip.active .category-chip-icon svg {
        fill: #fff;
        stroke: #fff;
    }

    .category-chip-label {
        font-size: 11px;
        font-weight: 600;
        color: #555;
        text-align: center;
        white-space: nowrap;
        line-height: 1.2;
    }

    .category-chip.active .category-chip-label {
        color: #3561C0;
    }

    header {
        margin-top: 70px;
    }

    .join-a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #000;
        gap: 10px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .back-to-top:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(53, 97, 192, 0.25);
    }
}

.hero {
    text-align: center;
    padding: 10px 0px 0px;
    animation: fadeInUp 0.8s ease;
}

.banner {
    display: none;
}


.banner img {
    width: 100%;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin: 15px 10px 10px 10px;
    letter-spacing: 0.5px;
}

.hero-subtitle span {
    font-size: 20px;
    color: #3561C0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 720px) {
    .hero {
        display: none;
        padding: 0px 0px 0px;
        animation: none;
    }

    .banner {
        display: block;
    }

    .banner img {
        width: 100%;
        height: 100%;
    }

    .hero-title {
        font-size: 25px;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(53, 97, 192, 0.4);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.main {
    font-family: 'FixelText', sans-serif;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.main a {
    text-decoration: none;
}

.category-section {
    margin: 10px 0;
    padding: 35px 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(53, 97, 192, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.category-section:hover {
    box-shadow: 0 8px 40px rgba(53, 97, 192, 0.1);
    transform: translateY(-2px);
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #3561C0, #7B9CE5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 25px auto;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0 0 15px 0;
    border: none;
    background-color: transparent;
    display: block;
    cursor: pointer;
    font-family: inherit;
}

.category-title:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.category-title:focus-visible {
    outline: none;
    opacity: 1;
}

.category-toggle {
    display: block;
    margin: 18px auto 0;
    padding: 10px 18px;
    border: 1px solid rgba(53, 97, 192, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #3561C0, #7B9CE5);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(53, 97, 192, 0.15);
}

.category-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(53, 97, 192, 0.22);
}

.category-toggle:focus-visible {
    outline: none;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3561C0, #7B9CE5);
    border-radius: 2px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    body {
        background: #f5f7fa;
    }

    .main {
        padding: 0 3px;
    }

    .category-section {
        margin: 10px 0;
        padding: 20px 12px;
        border-radius: 16px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
        animation: none;
        transition: none;
    }

    .category-section:hover {
        transform: none;
        box-shadow: 0 4px 30px rgba(53, 97, 192, 0.06);
    }

    .cards-container {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 12px;
        padding: 0 5px;
        justify-content: center;
    }

    .cards-container.full-mobile {
        gap: 15px;
        padding: 0;
    }

    .card {
        flex: 0 0 148px;
    }

    .category-section {
        position: relative;
    }

    .category-title {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .category-title::after {
        width: 40px;
    }
}

.card {
    justify-content: center;
    border-radius: 16px;
    margin: 4px;
    width: 185px;
    height: 330px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.4s ease backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card:nth-child(1) {
    animation-delay: 0.05s;
}

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

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

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

.card:nth-child(5) {
    animation-delay: 0.25s;
}

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

.card:nth-child(7) {
    animation-delay: 0.35s;
}

.card:nth-child(8) {
    animation-delay: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(53, 97, 192, 0.15);
    border-color: rgba(53, 97, 192, 0.2);
}

.card img {
    margin: 10px auto 0;
    width: 150px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-family: 'FixelText', sans-serif;
    font-weight: 550;
    font-size: 16px;
    color: #222;
    margin: 8px 10px;
    text-align: center;
    line-height: 1.3;
}

.card .price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    margin: 0 0 10px;
    box-shadow: 0 2px 8px rgba(53, 97, 192, 0.2);
}

.card:hover .price-badge {
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.3);
}

@media (max-width: 720px) {
    .card {
        margin: 8px auto;
        width: 148px;
        max-height: 300px;
        min-height: 200px;
        height: 280px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.92);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4),
    .card:nth-child(5),
    .card:nth-child(6),
    .card:nth-child(7),
    .card:nth-child(8) {
        animation-delay: 0s;
    }

    .card-mini {
        margin: 8px auto;
        width: 148px;
        height: 260px;
    }

    .card img {
        width: 120px;
        height: auto;
        transition: none;
    }

    .card:hover img {
        transform: none;
    }

    .card h3 {
        font-size: 14px;
        margin: 6px 8px;
    }

    .card .price-badge {
        font-size: 14px;
        padding: 3px 12px;
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(53, 97, 192, 0.1);
    }

    .card:hover .price-badge {
        box-shadow: 0 2px 8px rgba(53, 97, 192, 0.2);
    }
}

.popUp-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Затемнение фона под попапом */

.popUp-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 42, 78, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popUp-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Мобильная версия: шторка, выезжающая снизу */

.popUp-sheet {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(53, 97, 192, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

.popUp-overlay.active .popUp-sheet {
    transform: translateY(0);
}

.popUp-overlay.closing .popUp-sheet {
    transform: translateY(100%);
}

.popUp-handle {
    width: 46px;
    height: 5px;
    background: linear-gradient(135deg, #3561C0, #7B9CE5);
    opacity: 0.35;
    border-radius: 999px;
    margin: 14px auto 0;
    flex-shrink: 0;
}

.popUp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.3);
    transition: transform 0.2s ease;
}

.popUp-close:hover {
    transform: scale(1.08);
}

.popUp-close:active {
    transform: scale(0.92);
}

.popUp-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popUp-image-wrap {
    width: 100%;
    padding: 20px 20px 0;
    position: relative;
}

.popUp-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}

.popUp-sheet img {
    width: 230px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(53, 97, 192, 0.15);
    display: block;
    margin: 0 auto;
}

.popUp-body {
    padding: 16px 20px 24px;
    text-align: center;
}

.popUp-sheet h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #1a1a2e;
}

.popUp-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.popUp-price,
.popUp-volume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.4px;
}

.popUp-price {
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.25);
}

.popUp-volume {
    background: linear-gradient(135deg, #6b7f9f, #8b9db6);
    font-size: 15px;
    padding: 5px 14px;
    opacity: 0.95;
    box-shadow: 0 3px 10px rgba(107, 127, 159, 0.2);
}

.popUp-price::before,
.popUp-volume::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.popUp-description {
    font-family: 'FixelText', sans-serif;
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

/* Десктоп: попап превращается в центрированное модальное окно */

@media (min-width: 721px) {
    .popUp-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .popUp-sheet {
        position: relative;
        width: 420px;
        height: auto;
        max-height: 80vh;
        border-radius: 28px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
        transform: scale(0.92) translateY(20px);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }

    .popUp-overlay.active .popUp-sheet {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    .popUp-overlay.closing .popUp-sheet {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }

    .popUp-handle {
        display: none;
    }

    .popUp-image-wrap {
        padding: 30px 30px 0;
    }

    .popUp-sheet img {
        width: 240px;
        border-radius: 20px;
    }

    .popUp-body {
        padding: 20px 30px 30px;
    }

    .popUp-sheet h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .popUp-price {
        font-size: 20px;
        padding: 8px 22px;
    }

    .popUp-volume {
        font-size: 14px;
        padding: 6px 16px;
    }

    .popUp-description {
        font-size: 15px;
        margin-top: 14px;
    }
}

footer {
    background: linear-gradient(135deg, #1a2a4e, #2a3f6a, #1a2a4e);
    color: #fff;
    text-align: center;
    padding: 50px 20px 30px;
    margin: 60px 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3561C0, #7B9CE5, #3561C0);
}

.ft-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

.ft-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, #b0c8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.footer-info a {
    font-size: 18px;
    text-decoration: none;
    color: #b0c8f0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #fff;
}

.footer-info p {
    font-size: 18px;
    color: #b0c8f0;
    font-weight: 600;
    margin: 10px 0;
}

.footer-info p {
    font-size: 14px;
    color: rgba(176, 200, 240, 0.6);
    font-weight: 400;
}

.info-creator {
    justify-content: end;
    font-size: 14px;
    color: rgba(176, 200, 240, 0.6);
    font-weight: 400;
}

.info-creator a {
    font-size: 15px;
    text-decoration: none;
    color: #b0c8f0;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Кнопка оценки */

.rating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    border: none;
    font-family: 'FixelText', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(53, 97, 192, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(53, 97, 192, 0.4);
}

.rating-btn:active {
    transform: translateY(0) scale(0.95);
}

.rating-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 720px) {
    .rating-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 24px;
    }

    .rating-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(53, 97, 192, 0.3);
    }
}

/* ---------- Рейтинговая система ---------- */

.rating-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(26, 42, 78, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rating-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rating-form {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(53, 97, 192, 0.25);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
    width: 90%;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rating-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(53, 97, 192, 0.2);
}

.rating-close:hover {
    transform: scale(1.1);
}

.rating-close:active {
    transform: scale(0.95);
}

.rating-header {
    margin-bottom: 24px;
}

.rating-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.rating-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.rating-stars-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 20px;
}

.rating-comment {
    width: 100%;
    min-height: 90px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #d8e2f5;
    border-radius: 14px;
    resize: vertical;
    font-size: 14px;
    font-family: 'FixelText', sans-serif;
    color: #1a1a2e;
    box-sizing: border-box;
}

.rating-comment:focus {
    outline: none;
    border-color: #4A7BE0;
    box-shadow: 0 0 0 3px rgba(74, 123, 224, 0.15);
}

.rating-star {
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: grayscale(100%) opacity(0.5);
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.15);
    filter: grayscale(0%) opacity(1);
}

.rating-star.active {
    transform: scale(1.1);
    filter: grayscale(0%) opacity(1);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1.1);
    }
}

.rating-submit-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3561C0, #4A7BE0);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'FixelText', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(53, 97, 192, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(53, 97, 192, 0.35);
}

.rating-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.rating-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .rating-form {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .rating-header h3 {
        font-size: 20px;
    }

    .rating-header p {
        font-size: 13px;
    }

    .rating-stars-container {
        gap: 12px;
        margin: 20px 0 28px;
    }

    .rating-star {
        font-size: 40px;
    }

    .rating-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 10px;
    }
}