/* Custom CSS - минимальные стили для уникальных элементов */

/* Подключение фирменных шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* Фирменные шрифты - используем Inter как замену Amazing Grotesk */
.brand-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800; /* Ultra weight */
}

.brand-slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Book weight */
}

.brand-text {
    font-family: 'Georgia', serif;
}

:root {
    --brand-primary: #012f49;
    --brand-white: #ffffff;
    --brand-black: #000000;
    --primary-gradient: linear-gradient(135deg, #012f49 0%, #1a4a6b 100%);
    --accent-color: #012f49;
    --text-dark: #012f49;
    --text-light: #ffffff;
    --shadow-light: 0 0.125rem 0.25rem rgba(1, 47, 73, 0.1);
    --shadow-medium: 0 0.5rem 1rem rgba(1, 47, 73, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section padding for fixed navbar */
section:not(.hero-section) {
    scroll-margin-top: 180px;
    padding-top: 150px !important;
}

/* Дополнительные отступы для секции услуг */
#services {
    padding-top: 180px !important;
    scroll-margin-top: 200px;
}

/* Navigation */
#mainNav {
    background: rgba(1, 47, 73, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#mainNav.navbar-light {
    background: rgba(255, 255, 255, 0.95);
}

#mainNav.navbar-dark {
    background: rgba(1, 47, 73, 0.95);
}

/* Hero Section */
.hero-section {
    background: var(--brand-primary) url('img/bird.jpg') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; /* Увеличиваем отступ снизу */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 47, 73, 0.9) 0%, rgba(26, 74, 107, 0.85) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Дополнительный отступ для кнопок в hero секции */
.hero-section .animate-fade-in-delay-3 {
    margin-bottom: 60px;
}

/* Улучшение читаемости текста в hero секции */
.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #ffffff !important;
}

.hero-section p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
}


/* Logo Styles */
.logo-container {
    margin-bottom: 2rem;
    margin-top: 90px; /* МАКСИМАЛЬНО увеличиваем отступ сверху чтобы логотип не закрывался шапкой */
}

.logo-container img {
    max-width: 200px;
    height: auto;
    transition: all 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-container {
        margin-top: 200px; /* МАКСИМАЛЬНО увеличиваем отступ на мобильных чтобы не закрывался шапкой */
    }
    
    .logo-container img {
        max-width: 150px;
    }
    
    .hero-section {
        padding-bottom: 60px;
    }
    
    .hero-section .animate-fade-in-delay-3 {
        margin-bottom: 40px;
    }
    .hero-section .animate-fade-in-delay-3 .btn {
        margin-bottom: 12px;
    }
}

/* Footer Logo */
.footer-logo-img {
    max-width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo-img {
        max-width: 60px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--brand-white);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1a4a6b 100%);
    transform: scale(1.1);
}

/* Feature Cards with Background Images */
.feature-card {
    height: 200px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 47, 73, 0.8) 0%, rgba(1, 47, 73, 0.6) 100%);
    transition: all 0.3s ease;
}

.feature-card:hover::before {
    background: linear-gradient(135deg, rgba(1, 47, 73, 0.9) 0%, rgba(1, 47, 73, 0.7) 100%);
}

.feature-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
}

.feature-content h5 {
    color: white !important;
    margin-bottom: 15px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Background patterns for feature cards */
.experience-bg {
    background-image: url('img/mlb.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.speed-bg {
    background: linear-gradient(45deg, var(--brand-primary) 0%, #1a4a6b 100%);
    background-image: url('img/fastreact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.monitoring-bg {
   background: linear-gradient(45deg, var(--brand-primary) 0%, #1a4a6b 100%);
    background-image: url('img/24.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-bg {
     background: linear-gradient(45deg, var(--brand-primary) 0%, #1a4a6b 100%);
    background-image: url('img/tarif.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    
}

.flexible-bg {
   background: linear-gradient(45deg, var(--brand-primary) 0%, #1a4a6b 100%);
    background-image: url('img/deal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}

/* Process Timeline with Arrows */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-item {
    width: 100%;
}

.process-arrow {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1a4a6b 100%);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    color: white;
    transition: all 0.3s ease;
    min-height: 120px;
}

.process-arrow::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid #1a4a6b;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.process-arrow.final::after {
    display: none;
}

.process-arrow:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.process-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.process-icon i {
    font-size: 1.8rem;
    color: white;
}

.process-content {
    flex: 1;
}

.process-content h5 {
    color: white !important;
    margin-bottom: 10px;
}

.process-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

@media (max-width: 768px) {
    .process-arrow {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .process-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .process-arrow::after {
        display: none;
    }
}

/* Custom Button Styles */
.btn-primary {
    background: var(--brand-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    color: var(--brand-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: #1a4a6b;
    color: var(--brand-white);
}

.btn-outline-primary {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: var(--brand-white);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Pricing Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(1, 47, 73, 0.25);
}

.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(1, 47, 73, 0.25);
}

.form-control, .form-select {
    font-family: 'Georgia', serif;
    border-radius: 8px;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Дополнительные фирменные стили */
body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-primary);
}

.text-primary {
    color: var(--brand-primary) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.border-primary {
    border-color: var(--brand-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-icon,
    .feature-icon,
    .process-step {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
}

/* Messenger Buttons */
.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    border: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #006699 0%, #004466 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-viber {
    background: linear-gradient(135deg, #665CAC 0%, #4A4080 100%);
    border: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-viber:hover {
    background: linear-gradient(135deg, #554A99 0%, #3D3366 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    border: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1DA851 0%, #128C3D 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--brand-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #1a4a6b !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
}

.navbar-light .navbar-nav .nav-link.active::after {
    background: var(--brand-primary);
}

/* Scroll animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.w-60{
    width: 60%;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 47, 73, 0.98);
    color: #ffffff;
    padding: 16px 0;
    z-index: 1080;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-consent p {
    color: #ffffff !important;
}