:root {
    --primary-color: #003049; /* Темно-синий из логотипа */
    --secondary-color: #70E4EF; /* Голубой из логотипа */
    --accent-color: #B3F0FF; /* Светлый голубой для акцентов */
    --orange-accent: #FA582F; /* Оранжевый акцент для контраста */
    --success-color: #4ECDC4; /* Бирюзовый */
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --dark-bg: #001B2E; /* Еще более темный синий */
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-light: #e9ecef;
    --navbar-bg: #003049; /* Темный фон для навигации */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
}

/* Navigation - темная */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(112, 228, 239, 0.2);
    padding: 1rem 1rem;
    box-shadow: 0 2px 20px rgba(0, 48, 73, 0.3);
    height: 78px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border: 1px solid var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28112, 228, 239, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" patternUnits="userSpaceOnUse" width="10" height="10"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(112,228,239,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-slogan {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.advantage-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.advantage-item i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
}

.btn-primary-corporate {
    background: var(--orange-accent);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-primary-corporate:hover {
    background: #e55a2b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card-corporate {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 48, 73, 0.08);
}

.card-corporate:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 48, 73, 0.15);
    border-color: var(--orange-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Client Type Badge */
.client-type-badge {
    background: var(--orange-accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 48, 73, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 48, 73, 0.15);
    border-color: var(--secondary-color);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.product-content {
    padding: 1.5rem;
    background: #f9f9fa;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Conditions Cards */
.conditions-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 48, 73, 0.08);
    transition: all 0.3s ease;
}

.conditions-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 48, 73, 0.12);
}

.conditions-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--orange-accent));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.conditions-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.conditions-list i {
    color: var(--orange-accent);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-accent), var(--primary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--orange-accent));
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.process-text {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 48, 73, 0.1);
}

.form-control {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--orange-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--orange-accent));
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    color: var(--text-dark);
}

.contact-text strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-text a {
    color: var(--orange-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--orange-accent);
}

.footer-text {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-right: 0.75rem;
    width: 20px;
    color: var(--secondary-color);
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--orange-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(112, 228, 239, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-logo {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .process-step::after {
        display: none;
    }

    .navbar-logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 30px;
    }
}


/* Квадратные превью категорий */
.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Делаем квадрат */
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
}

.product-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 48, 73, 0.15);
    border-color: var(--secondary-color);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняем всю область, обрезая лишнее */
    object-position: center;
    transition: transform 0.3s ease;
    transform: scale(0.8); /* Приближаем изображение, чтобы скрыть белые поля */
}

.product-image:hover img {
    transform: scale(1.25); /* Еще больше приближаем при ховере */
}

/* Альтернативный вариант - с contain но без белых полей */
.product-image.contain-style img {
    object-fit: contain;
    transform: scale(0.8); /* Сильно приближаем для contain */
    padding: 0;
}

.product-image.contain-style:hover img {
    transform: scale(1.1);
}

/* Плейсхолдер для категорий без изображений */
.product-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.product-image:hover i {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Градиентный оверлей для лучшего контраста */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 48, 73, 0) 0%, rgba(0, 48, 73, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-image:hover::before {
    opacity: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-image i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .product-image {
        border-radius: 8px;
    }

    .product-image i {
        font-size: 2rem;
    }
}

/* Стили для карточек категорий */
.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.15);
    border-color: var(--secondary-color);
}

/* Бейджи */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--orange-accent);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Специальный стиль для товаров с очень белым фоном */
.product-image.white-bg {
    background: #f8f9fa;
    border: 2px solid var(--border-light);
}

.product-image.white-bg img {
    transform: scale(1.3);
    filter: contrast(1.1) saturate(1.1);
}

.product-image.white-bg:hover img {
    transform: scale(1.35);
}
