* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --dark-color: #1A1A2E;
    --light-color: #F5F5F5;
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #E8E8E8;
    --gradient: linear-gradient(135deg, #FF6B35 0%, #F77F00 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 180px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-call {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003566 100%);
    color: var(--white);
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 5px 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--accent-color);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Section Common Styles */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* Services Section */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    background: var(--gradient);
    color: var(--white);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: var(--white);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 20px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

/* Эффект свечения при наведении */
.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-icon:hover::before {
    left: 100%;
}

.service-icon:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.5);
}

.service-icon i {
    font-size: 2.5rem;
    z-index: 1;
}

/* Для популярных услуг - градиент синий */
.service-card.featured .service-icon {
    background: linear-gradient(135deg, #004e89 0%, #0077cc 100%);
    box-shadow: 0 8px 20px rgba(0, 78, 137, 0.3);
}

.service-card.featured .service-icon:hover {
    box-shadow: 0 15px 35px rgba(0, 78, 137, 0.5);
}
/* Интернет 4G/LTE - оранжевый */
.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Видеонаблюдение - красный */
.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Цифровое ТВ - синий */
.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #004e89 0%, #0077cc 100%);
}

/* Если есть 4-я услуга - зелёный */
.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}
@keyframes pulse-service {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
        transform: scale(1.05);
    }
}

.service-icon {
    animation: pulse-service 3s infinite ease-in-out;
}

/* Остановить анимацию при наведении */
.service-card:hover .service-icon {
    animation: none;
}
.service-icon {
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.service-icon:hover::after {
    width: 130px;
    height: 130px;
    background: rgba(255, 107, 53, 0.2);
}

/* Замена текстовых меток на иконки Font Awesome */
.service-icon:contains("[Интернет]")::before {
    content: "\f1eb"; /* Font Awesome wifi icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
}

.service-card .btn {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.service-card .btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    color: var(--gray);
}

/* Why Us Section */
.why-us {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004e89 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.advantage-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

.advantage-icon i {
    font-size: 2rem;
}
/* Профессионализм - синий */
.advantage-item:nth-child(1) .advantage-icon {
    background: linear-gradient(135deg, #004e89, #0066b3);
}

/* Честные цены - зелёный */
.advantage-item:nth-child(2) .advantage-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Быстрый выезд - оранжевый */
.advantage-item:nth-child(3) .advantage-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

/* Поддержка 24/7 - фиолетовый */
.advantage-item:nth-child(4) .advantage-icon {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
}

/* Гарантия качества - бирюзовый */
.advantage-item:nth-child(5) .advantage-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

/* Знаем Лесосибирск - красный */
.advantage-item:nth-child(6) .advantage-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}
@keyframes pulse-advantage {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 107, 53, 0.6);
    }
}

.advantage-icon {
    animation: pulse-advantage 3s infinite;
}

.advantage-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-item p {
    color: var(--gray);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--light-color);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Blog Section */
.blog {
    background: var(--light-color);
}

.blog-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-card h3 {
    margin-top: 5px;
    margin-bottom: 12px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contacts Section */
.contacts {
    background: var(--white);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item p {
    color: var(--gray);
}

.contact-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: auto;
    width: 240px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Floating Call Button */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.floating-call:hover {
    transform: scale(1.1);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 50px;
    height: 50px;
    background: rgba(0, 78, 137, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 107, 53, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .about-wrapper,
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid,
    .advantages-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .floating-call {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top {
        bottom: 30px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}