/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 2px 30px rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Основной контент */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Герой секция */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #b0b0b0;
    line-height: 1.7;
}

/* Кнопки */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0088ff);
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

/* Улучшенные стили для карточек услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #00ff88);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
}

.service-card h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.service-card p {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.materials {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.material-tag {
    display: inline-block;
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.material-tag:hover {
    background: rgba(0, 255, 255, 0.25);
    transform: scale(1.05);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    margin: 2rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Общие стили карточек */
.features-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card, .team-card, .stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #00ff88);
}

.feature-card:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
}

.feature-card h3, .team-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.feature-card p, .team-card p {
    color: #d0d0d0;
    line-height: 1.6;
}

/* Админ панель */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.9) 0%, rgba(0, 136, 255, 0.9) 100%);
    color: #000;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Подвал */
.footer {
    background: rgba(10, 15, 30, 0.95);
    color: #00ffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.footer p {
    margin: 0.5rem 0;
    color: #b0b0b0;
}

/* Стили для страницы заказа */
.order-steps {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.order-steps h2 {
    text-align: center;
    color: #00ffff;
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.step {
    margin-bottom: 30px;
    padding: 30px;
    border-left: 4px solid #00ffff;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
}

.step h3 {
    color: #00ff88;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.step p {
    margin: 0;
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contacts {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contacts p {
    color: #00ffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.telegram-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #00ffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.telegram-link:hover {
    background: #00ffff;
    color: #000;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
    }

    .features-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        margin-bottom: 2rem;
        padding: 2.5rem 2rem;
    }

    .service-card:not(:last-child) {
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        padding-bottom: 3rem;
    }

    .order-steps {
        padding: 20px 15px;
    }

    .step {
        padding: 20px;
        margin-bottom: 20px;
    }

    .step h3 {
        font-size: 1.3rem;
    }

    .step p {
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.3); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Стили для заголовков разделов */
.section-header {
    text-align: center;
    margin: 4rem 0 3rem 0;
    position: relative;
    padding: 0 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00ffff, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #00ff88);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Вариант с иконкой */
.section-header.with-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Вариант с декоративными элементами */
.section-header.decorated {
    position: relative;
}

.section-header.decorated::before,
.section-header.decorated::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.section-header.decorated::before {
    left: calc(50% - 120px);
}

.section-header.decorated::after {
    right: calc(50% - 120px);
}

/* Анимированный вариант */
.section-header.animated .section-title {
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.6),
                     0 0 30px rgba(0, 255, 136, 0.4);
    }
}

/* Минималистичный вариант */
.section-header.minimal .section-title {
    font-size: 2.5rem;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-header.minimal .section-title::before {
    width: 60px;
    height: 3px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.product-image {
    height: 250px; /* Увеличим высоту для лучшего отображения */
    overflow: hidden;
    position: relative;
}

<style>
.selected-product-info {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-product-info h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.selected-product-details {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: bold;
}
</style>

/* Стили для страницы отзывов */
.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.stat-label {
    font-size: 1rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #00ff88);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 1.4rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.reviewer-info h3 {
    font-size: 1.3rem;
    color: #00ffff;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.reviewer-info p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin: 0;
}

.rating {
    margin-bottom: 20px;
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.star.filled {
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.review-photo {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: 220px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.review-photo:hover img {
    transform: scale(1.05);
}

.review-content {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
}

.review-content p {
    margin: 0;
    font-style: normal;
}

/* Декоративная цитата */
.review-card::after {
    content: """;
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 80px;
    color: rgba(0, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

/* Стили для пустого состояния фотографии */
.review-photo:empty {
    display: none;
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .review-card {
        padding: 20px;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .reviewer-avatar {
        margin-right: 0;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .reviewer-info h3 {
        font-size: 1.2rem;
    }

    .rating {
        justify-content: center;
    }

    .review-photo {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 20px 15px;
    }

    .reviews-stats {
        gap: 20px;
        padding: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .review-card {
        padding: 15px;
    }

    .review-photo {
        max-height: 150px;
    }
}

/* Анимация появления отзывов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.6s ease-out;
}

.review-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.review-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Стили для загрузки фотографий */
.review-photo.loading {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }



    .section-header.decorated::before,
    .section-header.decorated::after {
        width: 50px;
    }

    .section-header.decorated::before {
        left: calc(50% - 80px);
    }

    .section-header.decorated::after {
        right: calc(50% - 80px);
    }
}

/* Стили для смол */
.material-badge.resin-standard { background: linear-gradient(45deg, #00ccff, #0099ff); color: #000; }
.material-badge.resin-detail { background: linear-gradient(45deg, #ff66ff, #cc00ff); color: #000; }
.material-badge.resin-tough { background: linear-gradient(45deg, #ff9966, #ff6600); color: #000; }
.material-badge.resin-flex { background: linear-gradient(45deg, #66ff66, #00cc00); color: #000; }

/* Стили для пост-обработки */
.material-badge.post-sanding { background: linear-gradient(45deg, #cccccc, #999999); color: #000; }
.material-badge.post-painting { background: linear-gradient(45deg, #ff3333, #cc0000); color: #000; }
.material-badge.post-assembly { background: linear-gradient(45deg, #3366ff, #0033cc); color: #000; }
.material-badge.post-varnish { background: linear-gradient(45deg, #ffff66, #ffcc00); color: #000; }

/* Стили для списка файлов */
#fileList {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.file-name {
    color: #00ff88;
    font-size: 0.8rem;
    flex-grow: 1;
}

.remove-file {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.remove-file:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* Добавьте в секцию стилей services.html */
.models-grid a.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.models-grid a.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Стили для модального окна изменения кода */
.current-code-display {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.form-text {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.btn-warning {
    background: linear-gradient(45deg, #ffaa00, #ff7700);
    color: #000;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto; /* Добавляем прокрутку для всего модального окна */
}

.modal-content {
    background: #0a0a0a;
    margin: 2% auto; /* Уменьшаем отступ сверху для мобильных устройств */
    padding: 0;
    border: 2px solid #00ffff;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* Ограничиваем максимальную высоту */
    overflow: hidden; /* Скрываем переполнение самого контейнера */
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column; /* Чтобы header и body были в колонке */
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d1f 100%) !important;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: #b0b0b0;
    text-align: center;
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto; /* Включаем вертикальную прокрутку для тела */
    flex-grow: 1; /* Занимаем все доступное пространство */
    max-height: calc(90vh - 80px); /* Вычитаем высоту хедера */
}

/* Улучшаем скроллбар */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #0099ff);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ccff, #0066ff);
}

/* Для Firefox */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}