body {
    margin: 0;
    background: url(https://cwitw.ru/game/pic/back/background_index_newStyle.png);
    background-position: center;
    background-attachment: fixed;
    font-family: "PT Sans", sans-serif;
    color: white;
    font-size: 18px;
}

a { 
    text-decoration: none;
    color: #D89950;
    font-weight: bold;
}

a:hover { 
    color: #4B3B21; 
    transition: all 0.4s ease;
}

.links {
    font-size: 24px;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #1E2822;
    border-radius: 10px;
    /*opacity: 0.96;*/
}

.shop-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.shop-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D89950, transparent);
}

.shop-title {
    font-size: 2.5rem;
    color: #D89950;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.shop-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-style: italic;
    margin-bottom: 20px;
}

.shop-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-nav-item {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #273234;
    color: #D89950;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #A56923;
}

.shop-nav-item.active,
.shop-nav-item:hover {
    background-color: #D89950;
    color: #212224;
}

.shop-content {
    width: 100%;
}

.info-section, .actions-section, .colors-section, .items-section, .pin-section {
    padding: 5px 30px 30px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-top: 2px solid #A56923;
    border-bottom: 2px solid #A56923;
    line-height: 1.6;
}

h2 {
    color: #D89950;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

h3 {
    color: #D89950;
    margin: 25px 0 15px 0;
    border-bottom: 1px solid #A56923;
    padding-bottom: 5px;
}

.red {
    color: red;
}

.green {
    color: #00e900;
}

.info-section p {
    margin: 15px 0;
}

.info-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.info-section li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info {
    background: #2a3a35;
    padding: 2px 10px 10px 10px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #D89950;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.shop-item {
    position: relative;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #273234;
    overflow: hidden;
    border: 2px solid #3a4a3e;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #D89950;
}

.item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E2822;
}

.item-image img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-item:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    padding: 20px;
}

.item-name {
    font-size: 1.3rem;
    color: #D89950;
    margin-bottom: 12px;
    font-weight: bold;
    text-align: center;
}

.item-description {
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 80px;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
    text-align: center;
}

.item-description::-webkit-scrollbar {
    width: 4px;
}

.item-description::-webkit-scrollbar-track {
    background: #1E2822;
    border-radius: 2px;
}

.item-description::-webkit-scrollbar-thumb {
    background: rgb(216, 153, 80);
    border-radius: 2px;
}

.item-description::-webkit-scrollbar-thumb:hover {
    background: rgb(75, 59, 33);
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #3a4a3e;
}

.item-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

.item-info {
    color: #a0a0a0;
    padding-bottom: 10px;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #D89950;
    font-style: italic;
    grid-column: 1 / -1;
    font-size: 1.2rem;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

.shop-nav-item {
    cursor: pointer;
}

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

.shop-item {
    /*animation: fadeIn 0.5s ease forwards;*/
}

.shop-item:nth-child(2) { animation-delay: 0.1s; }
.shop-item:nth-child(3) { animation-delay: 0.2s; }
.shop-item:nth-child(4) { animation-delay: 0.3s; }

.color-category {
    margin-bottom: 40px;
    background: #273234;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a4a3e;
}

.color-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.color-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.color-note {
    font-style: italic;
    color: #a0a0a0;
    margin-top: 10px;
    font-size: 0.9rem;
}

.color-warning {
    color: #ff6b6b;
    font-weight: bold;
    margin: 10px 0;
}

.carousel {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E2822;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a0a0a0;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #D89950;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer {
    background: #273234;
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    border-top: 5px solid #D89950;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-about {
    max-width: 300px;
}

.footer-logo {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #D89950;
    font-weight: bold;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-about-text {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
    text-align: justify;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-cat-container {
    position: relative;
    width: 500px;
    height: 220px;
    margin: 0 -100px;
}

.footer__img {
    background-image: url("https://cwitw.ru/img/footcat_1.png");
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 5px 15px rgba(216, 153, 80, 0.3));
}

.footer__img:hover {
    background-image: url("https://cwitw.ru/img/footcat_2.png");
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(216, 153, 80, 0.5));
}

@keyframes catPulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.footer__img:not(:hover) {
    animation: catPulse 4s ease-in-out infinite;
}

.footer-col {
    min-width: 150px;
}

.footer-col .footer-h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #D89950;
}

.footer-col .footer-h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #D89950;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s ease;
    color: #D89950;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(216, 153, 80, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #D89950;
}

.social-links a:hover {
    background: #D89950;
    color: #212224;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 3px 10px rgba(216, 153, 80, 0.3);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.example-block.correct {
    color: #dcffbf;
}

.example-block.incorrect {
    color: #ffa4a4;
}

@media (max-width: 1200px) {
    .footer-cat-container {
        width: 400px;
        height: 176px;
        margin: 0 -50px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-about {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .footer-cat-container {
        order: 3;
        width: 350px;
        height: 154px;
        margin: 40px 0;
    }
    
    .footer-links {
        order: 2;
        gap: 60px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .footer-cat-container {
        width: 280px;
        height: 123px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .color-category {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .shop-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .shop-nav-item {
        width: 80%;
        text-align: center;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section ul {
        padding-left: 20px;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .color-price {
        font-size: 1.2rem;
    }
}