/* Reset and Base Styles */

/* Предотвращение прокрутки страницы при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.particles {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particles:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.particles:nth-child(3) {
    bottom: 30%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00f2ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #00f2ff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.hero-character {
    position: absolute;
    top: 60%;
    left: 68%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.character-image {
    max-width: 200px;
    left: 10%;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gradient-text {
    background: linear-gradient(45deg, #00f2ff, #ff00ff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    color: #888;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00f2ff;
    transform: translateY(-3px);
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
}

/* Hero Image Frame */
.hero-image-frame {
    grid-column: span 2;
    margin-bottom: 1rem;
    position: relative;
}

.frame-border {
    position: relative;
    padding: 15px;
    background: linear-gradient(45deg, rgba(0, 242, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 242, 255, 0.2),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
    animation: frameGlow 3s ease-in-out infinite alternate;
}

@keyframes frameGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 242, 255, 0.2),
            inset 0 0 20px rgba(255, 0, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 35px rgba(0, 242, 255, 0.3),
            inset 0 0 35px rgba(255, 0, 255, 0.15);
    }
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
}

.frame-corner.top-left {
    top: 8px;
    left: 8px;
    border-top: 2px solid #00f2ff;
    border-left: 2px solid #00f2ff;
    border-top-left-radius: 8px;
}

.frame-corner.top-right {
    top: 8px;
    right: 8px;
    border-top: 2px solid #ff00ff;
    border-right: 2px solid #ff00ff;
    border-top-right-radius: 8px;
}

.frame-corner.bottom-left {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid #ff00ff;
    border-left: 2px solid #ff00ff;
    border-bottom-left-radius: 8px;
}

.frame-corner.bottom-right {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid #00f2ff;
    border-right: 2px solid #00f2ff;
    border-bottom-right-radius: 8px;
}

.frame-content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.frame-content:hover .hero-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 242, 255, 0.2) 0%,
        rgba(255, 0, 255, 0.2) 50%,
        rgba(0, 242, 255, 0.2) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.frame-content:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.overlay-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff00ff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: float-card 4s ease-in-out infinite;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

@keyframes float-card {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: #ffffff;
}

.floating-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.floating-card p {
    color: #ccc;
    font-size: 0.85rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 2rem;
    color: #ffffff;
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

/* News Section */
.news {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.2);
}

.news-image {
    height: 200px;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-date, .news-category {
    font-size: 0.9rem;
    color: #888;
}

.news-category {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.news-excerpt {
    color: #ccc;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-details p {
    color: #ccc;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00f2ff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.2);
    border-color: #00f2ff;
    transform: scale(1.1);
}

/* Дополнительная кнопка закрытия для мобильных */
.modal-close-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1001;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close-mobile:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: #00f2ff;
    color: #00f2ff;
    transform: translateX(-50%) scale(1.05);
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.1);
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.modal-info p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.news-content {
    color: #ccc;
    line-height: 1.6;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 242, 255, 0.3);
    border-top: 3px solid #00f2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
/* Desktop Grid Layout - Show 3 cards in one row */
@media (min-width: 769px) {
    .services-grid,
    .news-grid,
    .merch-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Hide 4th card on desktop */
    .news-card:nth-child(4),
    .merch-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title-container {
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-character {
        display: none;
    }
    
    .character-image {
        max-width: 150px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-image-frame {
        grid-column: span 1;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        height: 180px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .floating-card h3 {
        font-size: 1rem;
    }
    
    .floating-card p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card {
        margin: 0;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .news-card {
        margin: 0;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo span {
        font-size: 1.1rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 100px 1rem 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
  
    
    .character-image {
        display: none;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services-grid,
    .news-grid,
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .service-image,
    .news-image {
        height: 160px;
    }
    
    .service-content,
    .news-content {
        padding: 0.8rem;
    }
    
    .service-title,
    .news-title {
        font-size: 1rem;
    }
    
    .service-description,
    .news-excerpt {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo span {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-social a {
        width: 30px;
        height: 30px;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }
} 

/* Секция мерча */
.merch {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.merch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.merch-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 242, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
}

.merch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #ff00ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merch-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.merch-card:hover::before {
    opacity: 1;
}

.merch-image {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #00f2ff22, #ff00ff22);
}

.merch-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.merch-card:hover .merch-image img {
    transform: scale(1.1);
}

.merch-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #00f2ff22, #ff00ff22);
    color: #00f2ff;
    font-size: 3rem;
}

.merch-content {
    padding: 1.5rem;
}

.merch-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.merch-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merch-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.merch-price {
    color: #00f2ff;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.merch-quantity {
    color: #ff00ff;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 0, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.section-actions {
    text-align: center;
    margin-top: 2rem;
}

.section-actions .btn-primary {
    background: linear-gradient(135deg, #00f2ff 0%, #ff00ff 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.section-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
}

.section-actions .btn-primary i {
    font-size: 1.2rem;
}

/* Адаптивность для мерча */
@media (max-width: 768px) {
    .merch {
        padding: 60px 0;
    }
    
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .merch-card {
        margin: 0;
    }
    
    .merch-image {
        height: 280px;
    }
    
    .modal-image {
        height: 350px;
    }
    
    .merch-content {
        padding: 1.2rem;
    }
    
    .merch-title {
        font-size: 1.2rem;
    }
    
    .merch-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .merch-grid {
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .merch-content {
        padding: 1rem;
    }
    
    .merch-title {
        font-size: 1.1rem;
    }
    
    .merch-price {
        font-size: 1.2rem;
    }
    
    .merch-image {
        height: 250px;
    }
    
    .modal-image {
        height: 300px;
    }
} 

/* Стили для модального окна мерча */
.merch-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #00f2ff22, #ff00ff22);
    color: #00f2ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.merch-type-badge i {
    font-size: 1rem;
}

.merch-full-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.merch-details {
    background: rgba(0, 242, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    color: #00f2ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value {
    color: #fff;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

.merch-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.merch-price-large {
    color: #00f2ff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.merch-quantity-large {
    color: #ff00ff;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 0, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

/* Адаптивность для модального окна мерча */
@media (max-width: 768px) {
    .merch-details {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .detail-value {
        text-align: left;
        max-width: 100%;
    }
    
    .merch-modal-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .merch-price-large {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .merch-type-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .merch-full-description {
        font-size: 0.95rem;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.9rem;
    }
} 

/* Страница мерча */
.merch-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.merch-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.merch-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.merch-hero .hero-left {
    flex: 1;
    text-align: left;
}

.merch-hero .hero-center {
    flex: 1;
    text-align: center;
}

.merch-hero .hero-right {
    flex: 1;
    text-align: right;
}

.merch-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.merch-hero .hero-description {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

.hero-gif-window {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
    border: 2px solid rgba(0, 242, 255, 0.3);
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    animation: gifWindowFloat 4s ease-in-out infinite;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-gif-window:hover .hero-gif {
    transform: scale(1.1);
}

.gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 242, 255, 0.2), rgba(255, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-gif-window:hover .gif-overlay {
    opacity: 1;
}

.gif-text {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
    letter-spacing: 2px;
}

@keyframes gifWindowFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Фильтры */
.filters-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.filters {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    color: #00f2ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.price-slider {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00f2ff, #ff00ff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.price-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Страница мерча */
.merch-page {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: 60vh;
}

.merch-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 1.1rem;
}

.loading-merch {
    text-align: center;
    padding: 3rem;
    color: #ccc;
}

.loading-merch .loading-spinner {
    margin: 0 auto 1rem;
}

.no-merch {
    text-align: center;
    padding: 4rem 2rem;
    color: #ccc;
}

.no-merch i {
    font-size: 4rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-merch h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Полная сетка мерча */
.merch-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.merch-card-full {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 242, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.merch-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #ff00ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merch-card-full:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.merch-card-full:hover::before {
    opacity: 1;
}

.merch-image-full {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #00f2ff22, #ff00ff22);
}

.merch-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.merch-card-full:hover .merch-image-full img {
    transform: scale(1.1);
}

.merch-placeholder-full {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #00f2ff22, #ff00ff22);
    color: #00f2ff;
    font-size: 4rem;
}

.merch-type-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: #00f2ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.merch-content-full {
    padding: 1.5rem;
}

.merch-title-full {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.merch-description-full {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merch-details-preview {
    margin-bottom: 1.5rem;
}

.detail-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-preview:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-preview .detail-label {
    color: #00f2ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-preview .detail-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 60%;
    text-align: right;
    word-wrap: break-word;
}

.merch-meta-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.merch-price-full {
    color: #00f2ff;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.merch-quantity-full {
    color: #ff00ff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 0, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-full {
    width: 100%;
    background: linear-gradient(135deg, #00f2ff 0%, #ff00ff 100%);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
}

/* Кнопки "Ещё" для всех секций */
.section-actions {
    text-align: center;
    margin-top: 3rem;
}

.section-actions .btn-primary {
    background: linear-gradient(135deg, #00f2ff 0%, #ff00ff 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.section-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.section-actions .btn-primary i {
    font-size: 1.1rem;
}

/* Адаптивность для страницы мерча */
@media (max-width: 768px) {
    .merch-hero .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .merch-hero .hero-left,
    .merch-hero .hero-center,
    .merch-hero .hero-right {
        flex: none;
        text-align: center;
    }
    
    .merch-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .merch-hero .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-gif-window {
        width: 180px;
        height: 135px;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        max-width: 300px;
    }
    
    .merch-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 1rem;
    }
    
    .merch-card-full {
        margin: 0;
    }
    
    .merch-content-full {
        padding: 1.2rem;
    }
    
    .merch-title-full {
        font-size: 1.2rem;
    }
    
    .detail-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .detail-preview .detail-value {
        text-align: left;
        max-width: 100%;
    }
    
    .merch-meta-full {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .merch-price-full {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .merch-hero {
        padding: 100px 0 60px;
    }
    
    .merch-hero .hero-content {
        gap: 1.5rem;
    }
    
    .merch-hero .hero-title {
        font-size: 2rem;
    }
    
    .merch-hero .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-gif-window {
        width: 150px;
        height: 112px;
    }
    
    .gif-text {
        font-size: 0.9rem;
    }
    
    .filters-section {
        padding: 1.5rem 0;
    }
    
    .merch-grid-full {
        margin: 0 0.5rem;
    }
    
    .merch-content-full {
        padding: 1rem;
    }
    
    .merch-title-full {
        font-size: 1.1rem;
    }
    
    .merch-description-full {
        font-size: 0.95rem;
    }
    
    .merch-price-full {
        font-size: 1.3rem;
    }
} 

/* Contacts Modal Styles */
.contacts-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contacts-modal .modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding: 2rem;
}

.contacts-modal .modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.contacts-modal .modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-modal .modal-header p {
    color: #888;
    font-size: 1rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #ff00ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-photo {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

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

.contact-item:hover .contact-photo img {
    transform: scale(1.1);
}

.contact-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #000;
    font-size: 1.5rem;
}

.contact-line {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #00f2ff, #ff00ff);
    border-radius: 1px;
}

.contact-info {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: #fff;
    font-weight: 600;
}

.contact-info p {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.contact-type {
    display: inline-block;
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #000;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
    align-self: flex-start;
}

.contact-link:hover {
    background: linear-gradient(45deg, #00f2ff, #ff00ff);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.contact-link i {
    font-size: 0.75rem;
}

.contact-members {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #00f2ff;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.contact-members i {
    font-size: 0.7rem;
    color: #00f2ff;
}

/* Responsive for contacts modal */
@media (max-width: 768px) {
    .contacts-modal .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .contacts-modal .modal-body {
        max-height: calc(85vh - 150px);
        overflow-y: auto;
        padding: 1rem;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .contact-item {
        padding: 0.6rem;
        min-height: 70px;
        gap: 0.8rem;
    }
    
    .contact-photo {
        width: 40px;
        height: 40px;
        margin: 0;
    }
    
    .contact-info h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-info p {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-type {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .contacts-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .contacts-modal .modal-header p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contacts-modal .modal-content {
        max-width: 98vw;
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .contacts-modal .modal-body {
        max-height: calc(85vh - 120px);
        overflow-y: auto;
        padding: 0.5rem;
    }
    
    .contacts-modal .modal-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .contacts-modal .modal-header h2 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .contacts-modal .modal-header p {
        font-size: 0.8rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .contact-item {
        padding: 0.5rem;
        min-height: 70px;
        gap: 0.6rem;
    }
    
    .contact-photo {
        width: 35px;
        height: 35px;
        margin: 0;
    }
    
    .contact-info {
        text-align: left;
        flex: 1;
    }
    
    .contact-info h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-info p {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-type {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .contact-link i {
        font-size: 0.7rem;
    }
    
    .contact-members {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        margin-left: auto;
        align-self: flex-start;
    }
    
    .contact-members i {
        font-size: 0.65rem;
    }
}

/* Стили для карусели изображений */
.card-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.card-gallery-main {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.card-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.card-gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-gallery-nav.prev {
    left: 8px;
}

.card-gallery-nav.next {
    right: 8px;
}

.card-gallery-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.card-gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-gallery-indicator.active {
    background: white;
    transform: scale(1.2);
}

.card-gallery-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

/* Стили для карусели в модальных окнах */
.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-main {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: white;
    transform: scale(1.2);
}

.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

/* Адаптивность для карусели */
@media (max-width: 768px) {
    .card-gallery-nav {
        width: 28px;
        height: 28px;
    }
    
    .card-gallery-nav.prev {
        left: 4px;
    }
    
    .card-gallery-nav.next {
        right: 4px;
    }
    
    .card-gallery-indicators {
        bottom: 4px;
        gap: 3px;
    }
    
    .card-gallery-indicator {
        width: 6px;
        height: 6px;
    }
    
    .card-gallery-counter {
        top: 4px;
        right: 4px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .gallery-nav.prev {
        left: 8px;
    }
    
    .gallery-nav.next {
        right: 8px;
    }
    
    .gallery-indicators {
        bottom: 8px;
        gap: 4px;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
    
    .gallery-counter {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .card-gallery-nav {
        width: 24px;
        height: 24px;
    }
    
    .card-gallery-nav i {
        font-size: 0.7rem;
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
    }
    
    .gallery-nav i {
        font-size: 0.8rem;
    }
} 

/* Home page specific styles */
/* Hide 4th service card on desktop for home page only */
@media (min-width: 769px) {
    .home-page .service-card:nth-child(4) {
        display: none;
    }
}

/* Show 4th service card on mobile for home page */
@media (max-width: 768px) {
    .home-page .service-card:nth-child(4) {
        display: block;
    }
}

/* Modal styles to prevent footer and right basement */
.modal-open {
    overflow: hidden !important;
}

.modal-open .footer {
    display: none !important;
}

.modal-open .mobile-menu:not(.active) {
    display: none !important;
}

/* Prevent horizontal scroll in modals */
.modal {
    overflow: hidden !important;
}

.modal-content {
    overflow-x: hidden !important;
}

/* Mobile specific modal fixes */
@media (max-width: 768px) {
    .modal {
        padding: 0 !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
    }
    
    .modal-open body {
        position: fixed !important;
        width: 100% !important;
    }
    
    .modal-close-mobile {
        display: block !important;
    }
}

/* Order Form Styles */
.order-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-form h3 {
    color: #00f2ff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00f2ff;
    box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Size and Color Options */
.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-option,
.color-option {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.size-option:hover,
.color-option:hover {
    border-color: #00f2ff;
    background: rgba(0, 242, 255, 0.1);
}

.size-option.active,
.color-option.active {
    border-color: #00f2ff;
    background: linear-gradient(135deg, #00f2ff, #ff00ff);
    color: #ffffff;
}

/* Order Summary */
.order-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00f2ff;
    border-top: 2px solid rgba(0, 242, 255, 0.3);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Order Button */
.btn-order {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00f2ff, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

.btn-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for order form */
@media (max-width: 768px) {
    .order-form {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .order-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .size-options,
    .color-options {
        gap: 0.3rem;
    }
    
    .size-option,
    .color-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .order-summary {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .summary-item.total {
        font-size: 1rem;
    }
}