:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ff6b00;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --grad-dark-color: #7600ad;
    --grad-light-color: #ff9900;
}

@font-face {
    font-family: 'Montserrat';
    src: 
      url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: 'Montserrat';
    src: 
      url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: 'Montserrat';
    src: 
      url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: 'Montserrat';
    src: 
      url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Шапка */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(5px);
    padding: 10px 0;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Герой-баннер */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-banner.jpg') no-repeat center/cover;
    color: white;
    background-attachment: fixed;
    padding: 150px 0;
    text-align: center;
    /* min-height: 80vh; */
    display: flex;
    align-items: center;
}

.hero h1 {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e05d00;
    transform: translateY(-3px);
}

/* Услуги */
.services {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .card-img-top {
    height: 180px;
    object-fit: contain;
    padding: 20px;
    background: var(--light-color);
}

/* Преимущества */
.benefits {
    padding: 80px 0;
    background-color: var(--light-color);
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('../images/banner.jpg') no-repeat center/cover;
    color: white;
    background-attachment: fixed;
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Оптимизированные медиа-запросы */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
}

.price-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(255, 107, 0, 0.85) 100%);
    /*background: linear-gradient(to right, var(--grad-dark-color), var(--grad-light-color));*/
    color: white;
    padding: 100px 0 70px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.price-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url('../images/circuit-board-bg.jpg') center/cover;*/
    opacity: 0.15;
    z-index: 0;
}

.price-hero-content {
    position: relative;
    z-index: 1;
}

.price-hero h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.price-section {
    padding: 0 0 80px;
}

.price-category {
    margin-bottom: 50px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.price-category-title {
    background: linear-gradient(to right, var(--grad-dark-color), var(--grad-light-color));
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-weight: 600;
    position: relative;
}

.price-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.price-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:hover {
    background-color: rgba(248, 249, 250, 0.5);
}

.price-item-name {
    flex: 2;
    padding-right: 20px;
    font-weight: 500;
    color: var(--dark-color);
}

.price-item-value {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.price-item-warranty {
    flex: 1;
    text-align: right;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.price-note {
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 40px 0;
    border-radius: 0 5px 5px 0;
}

.price-note i {
    color: var(--primary-color);
    margin-right: 10px;
}

@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
    }
    
    .price-item-value,
    .price-item-warranty {
        text-align: left;
        margin-top: 5px;
        padding-left: 10px;
    }
    
    .price-item-warranty::before {
        content: "Гарантия: ";
        color: var(--secondary-color);
    }
}

/* Анимации */
.price-category {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Общий контейнер */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* Общие стили для кнопок */
.whatsapp-float, .telegram-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при тапе */
}

/* WhatsApp */
.whatsapp-float {
    background: #25D366;
}

/* Telegram */
.telegram-float {
    background: #0088cc;
}

/* Эффекты */
.whatsapp-float:hover, 
.telegram-float:hover,
.whatsapp-float:focus, 
.telegram-float:focus {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .float-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .whatsapp-float, 
    .telegram-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .float-buttons {
        right: 10px;
        bottom: 10px;
    }
    
    .whatsapp-float, 
    .telegram-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }   
}

/* Задержки для анимации категорий */
.price-category:nth-child(1) { animation-delay: 0.1s; }
.price-category:nth-child(2) { animation-delay: 0.2s; }
.price-category:nth-child(3) { animation-delay: 0.3s; }
.price-category:nth-child(4) { animation-delay: 0.4s; }
.price-category:nth-child(5) { animation-delay: 0.5s; }
.price-category:nth-child(6) { animation-delay: 0.6s; }
.price-category:nth-child(7) { animation-delay: 0.7s; }