:root {
    --primary-orange: #FF6B35;
    --dark-orange: #E55A2B;
    --white: #fff;
    --black: #121212;
    --dark-gray: #1E1E1E;
    --light-bg: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--black) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--black) 0%, var(--primary-orange) 100%);
    --gradient-card: linear-gradient(to bottom right, rgba(255, 107, 53, 0.1), rgba(18, 18, 18, 0.05));
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #333;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-color: #fefefe;
}
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.snow {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(0.5px);
}
.snow-accumulation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(3px);
    z-index: 9998;
    transition: height 0.5s ease;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    position: relative;
    z-index: 10000;
}
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0,0,0,0.1)"/></svg>');
    opacity: 0.1;
}
.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}
.card-feature {
    border: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}
.card-feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.icon-wrapper i {
    transform: rotate(-45deg);
    font-size: 2rem;
}
.card-feature:hover .icon-wrapper {
    transform: rotate(0deg);
}
.card-feature:hover .icon-wrapper i {
    transform: rotate(0deg);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    z-index: 3;
}
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    color: white;
}
.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary-custom:hover::after {
    left: 100%;
}
footer {
    background: var(--gradient-reverse);
    color: white;
    position: relative;
    z-index: 3;
}
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-link:hover {
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}
.content-wrapper {
    position: relative;
    z-index: 2;
}
.snow-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
}
.snow-controls button {
    margin: 0 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.snow-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.nav-link {
    font-weight: 600;
    color: var(--dark-gray) !important;
    position: relative;
    padding: 8px 12px !important;
    margin: 0 4px;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.highlight-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;filter: drop-shadow(0 0 1px #000);
}
.form-control {
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.accent-line {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 20px 0;
    border-radius: 2px;
}
.bg-dark-custom {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #000 100%);
    color: white;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Акцентные линии */
.accent-line {
    height: 5px;
    width: 80px;
    background: var(--gradient-primary);
    margin: 25px auto;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: shimmer 2s infinite;
}


 /* Анимированные плитки */
.tile-card {
    border: none;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out forwards;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.tile-card:nth-child(2) { animation-delay: 0.1s; }
.tile-card:nth-child(3) { animation-delay: 0.2s; }
.tile-card:nth-child(4) { animation-delay: 0.3s; }
.tile-card:nth-child(5) { animation-delay: 0.4s; }
.tile-card:nth-child(6) { animation-delay: 0.5s; }

.tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.tile-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.15);
}

.tile-card:hover::before {
    transform: scaleX(1);
}

.tile-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.tile-icon i {
    font-size: 2.5rem;
    color: white;
    transition: transform 0.5s ease;
}

.tile-card:hover .tile-icon {
    transform: rotateY(180deg) scale(1.1);
    animation: pulse 2s ease-in-out infinite;
}

.tile-card:hover .tile-icon i {
    transform: rotateY(-180deg);
}

.portfolio-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.tile-card:hover .portfolio-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Кнопки */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    padding: 14px 35px;
    font-weight: 700;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

/* Контакты */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-info {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.form-control {
    padding: 1rem;
    border: 2px solid rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Портфолио */
.portfolio-section {
    padding: 100px 0;
    background: var(--white);
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 25px;
    background: transparent;
    color: var(--dark-gray);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-card);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-orange);
}