/* =========================================
   1. ОБЩИЕ НАСТРОЙКИ СТРАНИЦЫ
   ========================================= */
   body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   2. ГЛАВНЫЙ КОНТЕЙНЕР И ФОН
   ========================================= */
.board {
    position: relative;
    width: 100%;
    display: block; 
}

.board img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

@media (max-aspect-ratio: 16/9) {
    .board { height: 100vh; overflow: hidden; }
    .board img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* =========================================
   3. ЦЕНТРАЛЬНАЯ ПАНЕЛЬ (СТЕКЛО)
   ========================================= */
.glass-panel {
    position: absolute;
    z-index: 10;
    top: 7%;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    padding: 5px; 
    overflow-y: auto;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 80px;
    color: #fff;
    text-align: center;
}

/* Кастомный скроллбар */
.glass-panel::-webkit-scrollbar { width: 10px; }
.glass-panel::-webkit-scrollbar-track {
    background: rgba(60, 50, 40, 0.4); 
    border-radius: 5px;
    margin: 10px 0;
    box-shadow: inset 1px 1px 0px rgba(0, 0, 0, 0.4);
}
.glass-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dca170, #b46e34); 
    border-radius: 5px;
    border: 1px solid #6f5135;
}

/* =========================================
   4. ТИПОГРАФИКА И ТЕКСТЫ
   ========================================= */
h1 {
    margin-top: 0 !important; 
    margin-bottom: 1px;
    font-size: clamp(22px, 2vw, 26px);
    color: #ffcc00;
    font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 -0.5px 0 rgba(255,255,255,0.4), 0 1px 0 #b38f00, 0 2px 4px rgba(0,0,0,0.5);
}

.intro-text, .footer-text {
    font-size: clamp(15px, 0.94rem, 18px);
    line-height: 1.3;
}
.intro-text { margin-bottom: 3px; }
.footer-text { margin-top: 0px; }

/* Блок копирования номера */
.phone-text { position: relative; display: inline-block; }
.copy-link {
    background: none; border: none; padding: 0; font: inherit;
    color: #ffd84d; border-bottom: 2px dashed #ffd84d;
    text-decoration: none; cursor: copy; transition: all 0.2s ease;
}
.copy-link:hover { color: #ffea70; }

.copy-status {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8); color: #fff; padding: 2px 8px;
    border-radius: 4px; font-size: 16px; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.copy-status.visible { opacity: 1; }

/* =========================================
   5. СПИСОК УСЛУГ
   ========================================= */
ul.services-list {
    list-style: none;
    padding: 10px 0;
    max-width: 950px;
    margin-top: auto; 
    margin-bottom: auto;
    display: inline-block; 
    text-align: left;
}

ul.services-list li {
    padding: 0 15px;
    height: clamp(28px, 4vh, 35px);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    padding-bottom: 3px;
    
    /* Вот здесь база для центровки */
    display: flex;
    align-items: center; 
    line-height: 1; /* Убирает лишние отступы сверху/снизу текста */
    
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(15px, 0.94rem, 18px);
    transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

ul.services-list li:last-child { margin-bottom: 0; }
ul.services-list li:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(5px); }

ul.services-list li::before {
    content: '✅';
    margin-right: 15px;
    flex-shrink: 0;
    filter: saturate(1.5) brightness(1.1);
    transition: transform 0.3s ease;
}
ul.services-list li:hover::before { transform: scale(1.3); }

/* Привязка анимаций пульсации к пунктам */
li:nth-child(1):hover { border-color: #ff4d4d; animation: pulse-red 2s infinite; }
li:nth-child(2):hover { border-color: #ffa500; animation: pulse-orange 2s infinite; }
li:nth-child(3):hover { border-color: #ffd700; animation: pulse-yellow 2s infinite; }
li:nth-child(4):hover { border-color: #32cd32; animation: pulse-green 2s infinite; }
li:nth-child(5):hover { border-color: #00bfff; animation: pulse-blue-light 2s infinite; }
li:nth-child(6):hover { border-color: #4169e1; animation: pulse-blue 2s infinite; }
li:nth-child(7):hover { border-color: #9370db; animation: pulse-purple 2s infinite; }

/* =========================================
   6. КНОПКИ СВЯЗИ (DESKTOP)
   ========================================= */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto; 
    margin-bottom: auto;
    padding: 5px 0; 
}

.contact-actions a {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(17px, 1.5vw, 20px); 
    height: 54px; 
    width: 230px; 
    border-radius: 35px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    padding: 0 15px;
    transition: all 0.3s ease;
}

/* Эффект блика */
.contact-actions a::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 10s infinite;
}
.btn-call::after { animation-delay: 0s !important; }
.btn-viber::after { animation-delay: 1.3s !important; }

/* Стили кнопок Desktop */
.btn-call {
    background: rgba(255, 204, 0, 0.35); border: 1px solid rgba(255, 204, 0, 0.6);
    box-shadow: 0 0 0 1.8px rgba(0, 0, 0, 0.35), 0 0 8px rgba(255, 204, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 10px rgba(255, 204, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 204, 0, 0.5);
}
.btn-call:hover {
    transform: translateY(-1px); background: rgba(255, 215, 0, 0.38); 
    box-shadow: 0 1.5px 0 1.8px rgba(0, 0, 0, 0.15), 0 0px 8px rgba(255, 220, 100, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 50px rgba(255, 204, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 204, 0, 0.7);
}
.btn-call:active { transform: scale(0.98); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.7), inset 0 6px 14px rgba(0, 0, 0, 0.7), inset 0 0 45px rgba(255, 204, 0, 0.95); }

.btn-viber {
    background: rgba(139, 92, 214, 0.35); border: 1px solid rgba(155, 126, 189, 0.6);
    box-shadow: 0 0 0 1.8px rgba(0, 0, 0, 0.35), 0 0 8px rgba(139, 92, 214, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 10px rgba(139, 92, 214, 0.3), 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(139, 92, 214, 0.5);
}
.btn-viber:hover {
    transform: translateY(-1px); background: rgba(151, 71, 255, 0.38); 
    box-shadow: 0 1.5px 0 1.8px rgba(0, 0, 0, 0.15), 0 0px 8px rgba(180, 120, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 50px rgba(163, 106, 255, 0.8), 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 25px rgba(139, 92, 214, 0.7);
}
.btn-viber:active { transform: scale(0.98); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.7), inset 0 6px 14px rgba(0, 0, 0, 0.7), inset 0 0 45px rgba(163, 106, 255, 0.95); }

/* =========================================
   7. МОБИЛЬНАЯ АДАПТАЦИЯ (PORTRAIT)
   ========================================= */
@media (max-width: 768px) {
    .glass-panel {
        width: 95% !important; top: 6% !important; bottom: 11% !important;
        border-radius: 35px !important; padding: 10px 10px 0 10px !important;
        display: flex !important; flex-direction: column !important;
    }
    .contact-actions {
        position: sticky !important; bottom: 0 !important;
        margin-left: -10px !important; margin-right: -10px !important;
        margin-bottom: 0 !important; margin-top: auto !important;
        width: calc(100% + 20px) !important; padding: 10px 15px 14px 15px !important;
        background: rgba(15, 12, 10, 0.98) !important;
        backdrop-filter: blur(18px) !important; -webkit-backdrop-filter: blur(18px) !important;
        gap: 12px !important; border-top: 1px solid rgba(255, 255, 255, 0.08); z-index: 1000 !important;
    }
    .contact-actions a {
        flex: 1 !important; max-width: 210px !important;
        height: 46px !important; font-size: 16px !important; border-radius: 35px !important;
        white-space: nowrap !important; border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
        transition: transform 0.1s ease, box-shadow 0.1s ease !important;
    }
    .contact-actions a:hover { transform: none !important; }
    .contact-actions a:active { transform: scale(0.96) !important; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4) !important; }
    
    .btn-call { background: #ffcc00 !important; color: #ffffff !important; font-weight: 600; letter-spacing: 0.3px; }
    .btn-viber { background: #7360f2 !important; color: #ffffff !important; font-weight: 600; letter-spacing: 0.3px; }
    
    /* Находим этот блок внутри @media (max-width: 768px) */
    li { 
        white-space: normal !important; 
        height: auto !important; 
        padding: 8px 6px 8px 6px !important; /* Добавили +3px к нижнему паддингу (было 10) */
        font-size: 15px !important; 
        display: flex !important;
        align-items: center !important;
    }
}

/* =========================================
   8. ГОРИЗОНТАЛЬНЫЙ РЕЖИМ (LANDSCAPE)
   ========================================= */
@media (max-width: 950px) and (orientation: landscape) {
    .glass-panel {
        width: 91% !important; left: 50% !important;
        transform: translateX(-50%) !important;
        top: 6% !important; bottom: 11% !important;
    }
}

/* =========================================
   9. АНИМАЦИИ (KEYFRAMES) - ВОЗВРАЩЕНО INSET
   ========================================= */
@keyframes shine { 0% { left: -75%; } 25% { left: 125%; } 100% { left: 125%; } }

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0px 15px rgba(255, 77, 77, 0.3), inset 0 0 15px rgba(255, 77, 77, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(255, 77, 77, 0.6), inset 0 0 35px rgba(255, 77, 77, 0.4); }
}
@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0px 15px rgba(255, 165, 0, 0.3), inset 0 0 15px rgba(255, 165, 0, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(255, 165, 0, 0.6), inset 0 0 35px rgba(255, 165, 0, 0.4); }
}
@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0px 15px rgba(255, 215, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(255, 215, 0, 0.6), inset 0 0 35px rgba(255, 215, 0, 0.4); }
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0px 15px rgba(50, 205, 50, 0.3), inset 0 0 15px rgba(50, 205, 50, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(50, 205, 50, 0.6), inset 0 0 35px rgba(50, 205, 50, 0.4); }
}
@keyframes pulse-blue-light {
    0%, 100% { box-shadow: 0 0px 15px rgba(0, 191, 255, 0.3), inset 0 0 15px rgba(0, 191, 255, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(0, 191, 255, 0.6), inset 0 0 35px rgba(0, 191, 255, 0.4); }
}
@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0px 15px rgba(65, 105, 225, 0.3), inset 0 0 15px rgba(65, 105, 225, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(65, 105, 225, 0.6), inset 0 0 35px rgba(65, 105, 225, 0.4); }
}
@keyframes pulse-purple {
    0%, 100% { box-shadow: 0 0px 15px rgba(147, 112, 219, 0.3), inset 0 0 15px rgba(147, 112, 219, 0.2); }
    50% { box-shadow: 0 0px 25px rgba(147, 112, 219, 0.6), inset 0 0 35px rgba(147, 112, 219, 0.4); }
}