body { 
    font-family: 'Arial', sans-serif; 
    color: #333; 
}

.navbar { 
    background: #0d1b2a; 
}

/* Стили для контактных иконок */
.top-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border: 0;
    text-decoration: none;
    transition: transform 0.2s;
}

.contact-icon i {
    color: white;
    font-size: 24px;
}

.tg-btn {
    background: linear-gradient(180deg, #37aee2, #2a9df4);
    box-shadow: 0 6px 18px rgba(42,174,244,0.18);
}

.wa-btn {
    background: linear-gradient(180deg, #25d366, #128c7e);
    box-shadow: 0 6px 18px rgba(37,211,102,0.12);
}

.contact-icon:hover {
    transform: scale(1.06);
    filter: brightness(1.04);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contact-icon {
        width: 36px;
        height: 36px;
        margin-left: 6px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .tg-btn {
        box-shadow: 0 4px 12px rgba(42,174,244,0.12);
    }
    
    .wa-btn {
        box-shadow: 0 4px 12px rgba(37,211,102,0.08);
    }
    
    .top-contact {
        gap: 6px;
    }
}

/* Герой секция */
.hero { 
    position:relative;
    color: white; 
    padding: 80px 0; 
    margin-top: 60px;
    overflow: hidden;
}

.hero-inner {
    position:relative;
    z-index:4;
}

/* Слайдшоу */
.hero-media {
    position:absolute;
    inset:0;
    z-index:1;
}

.hero-media .slide {
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transform:scale(1.02);
    animation:slideFade 12s infinite ease-in-out;
}

.hero-media .slide:nth-child(1){animation-delay:0s}
.hero-media .slide:nth-child(2){animation-delay:4s}
.hero-media .slide:nth-child(3){animation-delay:8s}

@keyframes slideFade{
    0%{opacity:0;transform:scale(1.02)}
    8%{opacity:1;transform:scale(1)}
    33%{opacity:1;transform:scale(1)}
    41%{opacity:0;transform:scale(1.02)}
    100%{opacity:0}
}

.hero::before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(6,12,24,0.55),rgba(6,12,24,0.55));
    z-index:2;
}

/* Карточки услуг */
.service-card { 
    transition: 0.3s; 
    border: none; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    border-radius: 12px; 
    overflow: hidden;
}

.service-card:hover { 
    transform: translateY(-10px); 
}

.service-card img { 
    height: 220px; 
    object-fit: cover; 
}

/* Галерея */
.gallery-img { 
    border-radius: 12px; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
    display:block;
    width:100%;
    height:220px;
    object-fit:cover;
}

#works .w-100 {
    display:flex;
    flex-direction:column;
    height:100%;
}

#works .w-100 > a {
    display:block;
    height:220px;
    overflow:hidden;
    border-radius:12px;
}

#works .w-100 > a img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

#works .w-100 > .text-center {
    margin-top:10px;
}

h2 { 
    color: #0d1b2a; 
}

.btn-primary { 
    background: #e63946; 
    border: none; 
    border-radius: 50px; 
    padding: 12px 32px; 
}

.btn-success { 
    background: #2a9d8f; 
    border: none; 
    transition: all 0.3s ease; 
}

.btn-success:hover { 
    opacity: 0.85; 
    transform: scale(1.05); 
}

.btn-warning { 
    background: #ffc107; 
    border: none; 
    transition: all 0.3s ease; 
}

.btn-warning:hover { 
    opacity: 0.85; 
    transform: scale(1.05); 
}

/* Модальное окно */
.modal-overlay {
    position:fixed;
    inset:0;
    background:rgba(6,12,24,0.5);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:60;
}

.modal {
    display:flex;
    position:relative;
    background:#fff;
    color:#0d1b2a;
    padding:24px;
    border-radius:16px;
    max-width:380px;
    width:90%;
    min-height:40px;
    box-shadow:0 8px 24px rgba(2,6,23,0.28);
    text-align:center;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.modal h4 {
    margin:0 0 6px;
    font-weight:700;
    font-size:16px;
}

.modal p {
    margin:0;
    font-size:13px;
    color:#334;
}

.modal-close {
    position:absolute;
    right:12px;
    top:8px;
    border:0;
    background:transparent;
    font-size:22px;
    line-height:1;
    color:#666;
    cursor:pointer;
}

.modal-overlay[hidden] {
    display:none;
}

/* Мобильные адаптации */
@media(max-width:768px){
    .hero { 
        padding: 80px 0; 
    }
    
    .hero .display-3 { 
        font-size: 2rem; 
    }
    
    .btn-primary, .btn-outline-light { 
        width: 100%; 
        margin-bottom: 10px; 
    }
}
