/* Цвета */
:root {
    --neon-pink: #ff00ff;
    --acid-green: #00ff00;
    --electric-blue: #0000ff;
    --psychedelic-yellow: #ffff00;
    --crazy-purple: #ff00ff;
}

/* Безумие, няня */
body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(45deg, #000000, #330033, #000000);
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative; /* Добавлено для корректного позиционирования */
    cursor: url('images/syringe.gif'), auto;
}

/* Мигающий баннер */
.banner {
    background: var(--neon-pink);
    color: black;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: clamp(14px, 4vw, 18px);
    word-wrap: break-word;
    position: relative; /* Защита от сдвига */
    z-index: 10;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Шапка */
.header {
    text-align: center;
    padding: clamp(20px, 10vw, 50px) clamp(10px, 5vw, 20px);
    background: radial-gradient(circle, var(--neon-pink), var(--electric-blue));
    position: relative; /* Защита от сдвига */
}

.title {
    font-size: clamp(2em, 10vw, 4em);
    margin: 0;
    text-shadow: 3px 3px 0 var(--acid-green),
                -3px -3px 0 var(--psychedelic-yellow);
    word-wrap: break-word;
}

.glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-size: clamp(1em, 4vw, 1.5em);
    margin: 20px 0;
    word-wrap: break-word;
}

/* Кнопка CTA */
.cta-button {
    background: var(--acid-green);
    color: black;
    border: none;
    padding: clamp(15px, 5vw, 20px) clamp(30px, 8vw, 40px);
    font-size: clamp(1em, 4vw, 1.5em);
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
    max-width: 90vw;
}

.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.cta-button:hover {
    background: var(--psychedelic-yellow);
    transform: scale(1.1);
}

/* Счетчик */
.counter {
    text-align: center;
    padding: 20px;
    background: var(--electric-blue);
    margin: 20px;
    border-radius: 15px;
    position: relative; /* Защита от сдвига */
}

.counter h2 {
    font-size: clamp(1.2em, 5vw, 2em);
    margin: 0;
    word-wrap: break-word;
}

/* Услуги */
.services {
    padding: clamp(20px, 10vw, 50px) clamp(10px, 5vw, 20px);
    position: relative; /* Защита от сдвига */
}

.section-title {
    text-align: center;
    font-size: clamp(1.5em, 6vw, 2.5em);
    color: var(--acid-green);
    text-shadow: 2px 2px 0 var(--neon-pink);
    animation: colorChange 3s infinite;
    word-wrap: break-word;
}

@keyframes colorChange {
    0% { color: var(--acid-green); }
    50% { color: var(--psychedelic-yellow); }
    100% { color: var(--acid-green); }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    word-wrap: break-word;
}

.service-card:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Крэйзи данилы лол */
.crazy-border-1 {
    border: 5px dashed var(--neon-pink);
    animation: borderFlash 2s infinite;
}

.crazy-border-2 {
    border: 5px dotted var(--acid-green);
    animation: borderFlash 3s infinite;
}

.crazy-border-3 {
    border: 5px double var(--psychedelic-yellow);
    animation: borderFlash 4s infinite;
}

.crazy-border-4 {
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}

.crazy-border-5 {
    border: 3px solid var(--acid-green);
    box-shadow: 0 0 20px var(--acid-green);
}

.crazy-border-6 {
    border: 3px solid var(--psychedelic-yellow);
    box-shadow: 0 0 20px var(--psychedelic-yellow);
}

@keyframes borderFlash {
    0%, 100% { border-color: var(--neon-pink); }
    50% { border-color: var(--acid-green); }
}

.price {
    font-size: clamp(1.2em, 4vw, 1.5em);
    font-weight: bold;
    color: var(--psychedelic-yellow);
    margin: 15px 0;
}

.service-btn {
    background: var(--neon-pink);
    color: black;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.service-btn:hover {
    background: var(--electric-blue);
    color: white;
}

/* Отзывы */
.reviews {
    padding: clamp(20px, 10vw, 50px) clamp(10px, 5vw, 20px);
    background: rgba(255, 0, 255, 0.1);
    position: relative; /* Защита от сдвига */
}

.review-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    margin-top: 40px;
}

.review {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    word-wrap: break-word;
}

.author {
    font-weight: bold;
    color: var(--acid-green);
    margin-top: 15px;
}

.rating {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Галерея */
.gallery {
    padding: clamp(20px, 10vw, 50px) clamp(10px, 5vw, 20px);
    position: relative; /* Защита от сдвига */
}

.images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 15px;
    margin-top: 40px;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: clamp(1em, 3vw, 1.2em);
    border: 3px dashed var(--psychedelic-yellow);
    text-align: center;
    padding: 10px;
    word-wrap: break-word;
}

/* Бегущая строка */
.marquee {
    background: linear-gradient(90deg, #ff00ff, #00ff00, #0000ff);
    color: black;
    padding: 10px 0;
    font-weight: bold;
    font-size: clamp(14px, 3vw, 18px);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 10px #ff00ff;
    position: relative; /* Защита от сдвига */
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Что-то*/
.cto-to {
    text-align: center;
    padding: 20px;
    background: var(--acid-green);
    color: var(--neon-pink);
    margin: 15px;
    border-radius: 10px;
    position: relative; /* Защита от сдвига */
}

.cto-to h3 {
    font-size: clamp(1.2em, 5vw, 2em);
    margin: 0;
    word-wrap: break-word;
}

/* Команда */
.team {
    padding: clamp(20px, 10vw, 50px) clamp(10px, 5vw, 20px);
    background: rgba(0, 255, 0, 0.1);
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.team-member-img {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-member-info {
    flex: 1;
}

.team-member h3 {
    margin: 0 0 15px 0;
    font-size: 2em;
}

.team-member:nth-child(1) h3 {
    color: #8B0000;
}

.team-member:nth-child(2) h3 {
    color: var(--acid-green);
}

.team-member:nth-child(3) h3 {
    color: var(--psychedelic-yellow);
}

.team-member:nth-child(4) h3 {
    color: var(--acid-green);
}

.team-position {
    margin: 10px 0;
    font-size: 1.2em;
    word-wrap: break-word;
}

.team-description {
    margin: 15px 0;
    word-wrap: break-word;
}

.team-member .rating {
    font-size: 1.5em;
    margin-top: 20px;
}

.team-member:nth-child(1) .rating {
    color: #8B0000;
}

.team-member:nth-child(4) .rating {
    color: #FFD700;
}

/* Футер */
.footer {
    background: #000;
    padding: 30px 20px;
    text-align: center;
    border-top: 5px solid var(--neon-pink);
    position: relative; /* Защита от сдвига */
}

.disclaimer {
    background: rgba(255, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.contacts {
    font-size: clamp(0.9em, 3vw, 1.1em);
    word-wrap: break-word;
}

/* Анимации для текста */
.pulse-text {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.float-text {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Стили для уведомления */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--neon-pink);
    color: black;
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 30px var(--acid-green);
    border: 3px solid var(--psychedelic-yellow);
    max-width: 90vw;
    width: 300px;
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Адаптивность */
@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-slider {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .images {
        grid-template-columns: 1fr;
    }
    
    .counter {
        margin: 10px;
        padding: 15px;
    }
    
    .cto-to {
        margin: 10px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .team-member-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .banner {
        padding: 8px 5px;
    }
    
    .cta-button, .service-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .marquee span {
        animation: marquee 10s linear infinite;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .team-member-img {
        width: 150px;
        height: 150px;
    }
}

/* Отключение анимаций для пользователей, которые их предпочитают не использовать */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}