@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    background-color: #262626;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    background-color: #1f1f1f;
    color: white;
    padding: 10px 15px;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-icon span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.drawer {
    position: fixed;
    left: -250px;
    top: 50px;
    width: 250px;
    height: calc(100vh - 50px);
    background: #1f1f1f;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 999;
    overflow-y: auto;
}

.drawer.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 998;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.menu {
    font-size: 18px;
    list-style: none;
    padding: 20px;
    margin: 0;
}

.menu li {
    position: relative;
    margin: 10px 0;
}

.menu a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    padding: 12px;
    transition: 0.2s;
    border-radius: 4px;
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline;
}

.menu a:hover {
    background: #2d2d2d;
    text-decoration: none !important;
}

.menu img {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    object-fit: contain;
    transition: 0.3s;
}

.menu span {
    margin-left: 12px;
    transition: 0.3s;
}

.submenu {
    list-style: none;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    background: #2d2d2d;
    margin-top: 5px;
    border-radius: 4px;
}

.submenu.active {
    max-height: 200px;
}

.submenu a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
}

.submenu-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.has-submenu::after {
    content: '▼';
    margin-left: auto;
    font-size: 12px;
    transition: 0.2s;
    color: white;
}

.has-submenu.active::after {
    transform: rotate(180deg);
}

.separator-menu {
    border-top: 2px solid #fff;
    margin: 10px 0;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

body.no-scroll {
    overflow: hidden;
}

.highlight {
    background-color: #ffcc00;
    color: #262626;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-container {
    font-family: "Comfortaa", sans-serif;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchInput {
    padding: 8px 12px;
    border: 2px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    width: 200px;
}

#searchInput:focus {
    border-color: #ffcc00;
}

.search-container button {
    padding: 8px 12px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    color: #262626;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #ffdd33;
}

/* Обновленные стили профиля */
.profile-card {
    width: 100%;
    max-width: 1000px;
    background: #2d2d2d;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 20px auto;
    position: relative;
}

.profile-header {
    position: relative;
    height: 300px;
    background: url('https://i.postimg.cc/dtmWKyP0/photo-5371044212570712674-y.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    background-blend-mode: overlay;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.profile-content {
    display: flex;
    padding: 30px;
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}


/* Аватарка художника */
.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
    border: 4px solid #ffcc00;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(45, 45, 45, 0.7);
    /* Внутренняя тень */
    filter: brightness(1.05) contrast(1.1);
    position: relative;
    z-index: 2;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Добавлено, чтобы контейнер не сжимался */
}

.avatar-border {
    position: absolute;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 50%;
    background: linear-gradient(45deg,
            #ff0000, #ff7300, #fffb00, #48ff00,
            #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    animation: gradientBorder 8s ease infinite;
    z-index: 1;
    filter: blur(5px);
    opacity: 0.7;
}

.avatar-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg,
            #ff0000, #ff7300, #fffb00, #48ff00,
            #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    animation: gradientBorder 8s ease infinite;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid #2d2d2d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {


    .avatar-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-info {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .avatar {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffcc00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-link {
    color: #ffcc00;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-link:hover {
    color: #fff;
    text-decoration: underline;
}

.profile-link-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    filter: brightness(0.9);
}

.profile-bio {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.profile-badges {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge.verified {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.badge.experience {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.badge.pro {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border: 1px solid #9C27B0;
}

.social-links {
    --icon-size: 2rem;
    --icon-gap: 0.75rem;
    --hover-scale: 1.15;
    --active-scale: 0.95;
    --transition-duration: 0.2s;

    display: flex;
    gap: var(--icon-gap);
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.social-link {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transform: scale(1);
    transition:
        transform var(--transition-duration) ease,
        filter var(--transition-duration) ease;
    will-change: transform;
    filter: grayscale(20%) brightness(0.9);
}

.social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.social-link:hover {
    transform: scale(var(--hover-scale));
    filter: grayscale(0%) brightness(1.05);
    z-index: 1;
}

.social-link:active {
    transform: scale(var(--active-scale));
}

/* Tabs section styles */
.tabs-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    background: #2d2d2d;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #1f1f1f;
    border-bottom: 2px solid #ffcc00;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn.active {
    color: #ffcc00;
    background: #2d2d2d;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffcc00;
}

.tab-btn:hover:not(.active) {
    background: #333;
}

.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content h3 {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 22px;
}

.tab-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.review {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.review:last-child {
    border-bottom: none;
}

.review h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.rating {
    color: #ffcc00;
    margin-top: 5px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}


.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ffcc00;
    transform: rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
}

/* Footer */
.site-footer {
    background-color: #1f1f1f;
    padding: 30px 15px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
}

.footer-text {
    color: #aaa;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #FFD700;
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Стили для списков и таблиц в табах */
.tab-content ul,
.tab-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tab-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.price-category {
    margin-bottom: 20px;
}

.price-category h4 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto 8px;
    padding: 0 20px;
}

.price-name {
    color: #e0e0e0;
}

.price-value {
    color: #ffcc00;
    font-weight: bold;
}

.add-review-btn {
    background-color: #ffcc00;
    color: #262626;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.add-review-btn:hover {
    background-color: #ffdd33;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-date {
    color: #aaa;
    font-size: 0.9em;
}

/* Адаптация для мобильных устройств */
@media (max-width: 900px) {
    .profile-header {
        height: 250px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .tab-content {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .profile-info {
        align-items: center;
        text-align: center;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-bio {
        font-size: 0.95rem;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .profile-header {
        height: 200px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-badges {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .tab-content {
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .search-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-header {
        height: 180px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .social-links {
        gap: 12px;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .profile-link {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .profile-header {
        height: 160px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для заголовка работ */
.works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.works-header h3 {
    color: #ffcc00;
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.works-header h3 i {
    font-size: 1.2em;
}

/* Стили для кнопки архива */
.archive-link {
    margin-left: auto;
}

.archive-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-btn:hover {
    background: rgba(255, 204, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.1);
}

.archive-icon {
    width: 24px;
    height: 24px;
}

.archive-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archive-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.archive-title {
    font-weight: bold;
    font-size: 14px;
}

.archive-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.archive-btn i {
    font-size: 12px;
    opacity: 0.7;
}

.gallery-description {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .works-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-link {
        margin-left: 0;
        width: 100%;
    }

    .archive-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Стили для контейнера отзывов */
.reviews-container {
    margin-bottom: 15px;
}

/* Стили для дополнительных отзывов (скрыты по умолчанию) */
.additional-reviews {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
}

.additional-reviews.expanded {
    max-height: 1000px;
    /* Достаточно большое значение для анимации */
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in 0.2s;
}

/* Стили для кнопки */
.show-more-btn {
    background-color: transparent;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0;
}

.show-more-btn:hover {
    background-color: rgba(255, 204, 0, 0.1);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.anime-section {
    display: flex;
    flex-direction: row;
    /* По умолчанию - горизонтальное расположение */
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 20px;
    background-color: #555;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
}

.anime-section img {
    width: 600px;
    height: 420px;
    object-fit: fill;
    border-radius: 10px;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* Запрещаем сжатие изображения */
}

.anime-section img:hover {
    transform: scale(1.02);
}

.anime-section .text {
    flex: 1;
    color: white;
    padding: 10px;
}

.anime-section .text h3 {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 24px;
}

.anime-section .text .author {
    font-style: italic;
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.anime-section .text .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.anime-section .text .description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.anime-section .text .price {
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 15px;
}

.anime-section .text .price span {
    color: white;
    font-size: 16px;
    font-weight: normal;
}

.anime-section .text .order-btn {
    background-color: #ffcc00;
    color: #262626;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Comfortaa", sans-serif;
}

.anime-section .text .order-btn:hover {
    background-color: #ffdd33;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 780px) {
    .anime-section {
        flex-direction: column;
        /* Вертикальное расположение */
        align-items: center;
    }

    .anime-section img {
        width: 100%;
        height: 480px;
        max-height: 480px;
        margin-right: 0;
        margin-bottom: 20px;
        order: 1 !important;
        /* Изображение будет первым */
    }

    .anime-section .text {
        width: 100%;
        text-align: center;
        order: 2 !important;
        /* Текст будет вторым (под изображением) */
    }

    .anime-section .text .author {
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .anime-section img {
        max-height: 380px;
    }

    .anime-section .text h3 {
        font-size: 20px;
    }

    .anime-section .text .description {
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .anime-section img {

        max-height: 280px;
    }

    .anime-section .text h3 {
        font-size: 18px;
    }

    .anime-section .text .description {
        font-size: 14px;
    }
}

@media (max-width: 330px) {
    .anime-section img {
        max-height: 180px;
    }

    .anime-section .text h3 {
        font-size: 18px;
    }

    .anime-section .text .description {
        font-size: 14px;
    }
}

.order-btn {
    position: relative;
    background: linear-gradient(135deg, #08a0f7 0%, #0066ff 100%);
    color: white !important;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.6s;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.3);
    background: linear-gradient(135deg, #0066ff 0%, #08a0f7 100%);
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.order-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.order-btn:hover img {
    transform: rotate(-30deg) scale(1.1);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:hover {
    background-color: #ffdd33;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
}

/* Анимации появления */
.profile-card,
.tabs-container,
.gallery-item,
.archive-btn,
.anime-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.profile-card.visible,
.tabs-container.visible,
.gallery-item.visible,
.archive-btn.visible,
.anime-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для модальных окон */
.modal-content img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.modal-content img.visible {
    opacity: 1;
    transform: scale(1);
}

/* New styles for the documents page */
body {
    background-color: #262626;
    background-image: url('https://i.postimg.cc/vZM1kXjb/15e299a41f42b7f34ba9415858d18c28.jpg');
    /* Добавляем фоновое изображение */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #eee;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Затемнение фона для лучшей читаемости контента */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 38, 38, 0.85);
    /* Затемнение фона */
    z-index: -1;
}

/* Обновляем стили для rules-container */
.rules-container {
    background-color: rgba(68, 68, 68, 0.9);
    /* Добавляем прозрачность */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin-top: 80px;
    padding: 30px;
    box-sizing: border-box;
    min-height: 100vh;
    border-radius: 12px;
    margin-left: 20px;
    margin-right: 20px;
    backdrop-filter: blur(2px);
    /* Легкое размытие фона */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        /* Убираем фиксированный фон на мобильных */
    }

    .rules-container {
        background-color: rgba(68, 68, 68, 0.95);
        /* Меньше прозрачности на маленьких экранах */
        backdrop-filter: none;
        /* Убираем размытие на мобильных */
    }
}



body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.rules-container {
    background-color: #444;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    padding: 30px;
    box-sizing: border-box;
    min-height: 100vh;
    border-radius: 12px;
    /* Закругленные углы */
    margin-left: 20px;
    /* Отступы по бокам */
    margin-right: 20px;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .rules-container {
        margin-top: 70px;
        border-radius: 10px;
        padding: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .rules-container {
        margin-top: 60px;
        border-radius: 8px;
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .terms-header h1 {
        font-size: 2rem;
    }
}

/* Адаптация для маленьких мобильных устройств */
@media (max-width: 480px) {
    .rules-container {
        margin-top: 50px;
        border-radius: 6px;
        padding: 15px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .terms-header h1 {
        font-size: 1.8rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
    .rules-container {
        margin-top: 40px;
        border-radius: 4px;
        padding: 12px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .terms-header h1 {
        font-size: 1.6rem;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-section p,
    .terms-section li {
        font-size: 0.9rem;
    }
}

.terms-header {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

.terms-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffcc00;
    word-wrap: break-word;
}

.terms-content {
    padding: 0 20px;
    box-sizing: border-box;
}

.terms-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

.terms-section h2 {
    color: #ffcc00;
    margin-top: 0;
    padding-bottom: 10px;
    font-size: 1.8rem;
    word-wrap: break-word;
    text-align: center;
}

.terms-section h3 {
    color: #ffcc00;
    margin-top: 30px;
    font-size: 1.4rem;
    word-wrap: break-word;
}

.terms-section h4 {
    color: #ffcc00;
    margin-top: 25px;
    font-size: 1.2rem;
    word-wrap: break-word;
}

.terms-section p {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 15px;
    text-align: justify;
    word-wrap: break-word;
}

.terms-section ul {
    padding-left: 25px;
    margin: 15px 0;
}

.terms-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #ddd;
    word-wrap: break-word;
}

.update-date {
    margin-top: 40px;
    font-style: italic;
    color: #aaa;
    text-align: right;
    font-size: 0.9rem;
}

.term-divider {
    border-top: 2px solid #666;
    margin: 30px 0;
}

.term-definition {
    background-color: #555;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid #ffcc00;
}

strong {
    color: #fff;
}

/* Стили для ссылок */
a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Back to top button styles */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: none;
    outline: none;
}

.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-container {
        padding: 0;
    }

    .rules-container {
        padding: 20px;
        border-radius: 0;
        margin-top: 0;
    }

    .terms-header h1 {
        font-size: 2rem;
    }

    .terms-section h2 {
        font-size: 1.6rem;
    }

    .terms-section h3 {
        font-size: 1.3rem;
    }

    .terms-section h4 {
        font-size: 1.1rem;
    }

    .terms-content {
        padding: 0 15px;
    }

    .back-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .rules-container {
        padding: 15px;
    }

    .terms-header h1 {
        font-size: 1.8rem;
    }

    .terms-section h2 {
        font-size: 1.4rem;
        padding-left: 0;
        padding-right: 0;
    }

    .terms-section h3 {
        font-size: 1.2rem;
    }

    .terms-section h4 {
        font-size: 1rem;
    }

    .terms-section p,
    .terms-section li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 60px;
        right: 15px;
    }

    .back-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Убираем стандартное подчеркивание у всех ссылок в футере */
.footer-links a {
    text-decoration: none !important;
    /* Важно, чтобы перекрыть другие стили */
    position: relative;
    transition: all 0.3s ease;
}

/* Кастомное подчеркивание при наведении */
.footer-links a:hover {
    text-decoration: none !important;
    /* На всякий случай */
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: #ffcc00;
    /* Цвет подчеркивания */
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.terms-section h2,
.terms-section h3,
.terms-section h4,
.terms-section p,
.terms-section ul {
    opacity: 0;
    animation: fadeInElement 0.6s ease-in-out forwards;
}

.terms-section h2 {
    animation-delay: 0.2s;
}

.terms-section h3 {
    animation-delay: 0.4s;
}

.terms-section h4 {
    animation-delay: 0.5s;
}

.terms-section p {
    animation-delay: 0.6s;
}

.terms-section ul {
    animation-delay: 0.7s;
}

@keyframes fadeInElement {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-with-caption {
    margin: 25px 0;
    text-align: center;
}

.image-caption {
    font-size: 16px;
    color: #ffcc00;
    margin-bottom: 10px;
    font-weight: bold;
}

.responsive-image {
    width: 350px;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.responsive-image:hover {
    transform: scale(1.02);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: center;
}

@media (max-width: 768px) {
    .image-caption {
        font-size: 14px;
    }

    .responsive-image {
        width: 300px;
        height: 514px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .image-caption {
        font-size: 13px;
    }

    .responsive-image {
        width: 280px;
        height: 480px;
    }
}