/* Базовые настройки */
:root {
    --primary-color: #ff6a00; /* Основной оранжевый */
    --secondary-color: #ff9d4d; /* Акцентный бледный оранжевый */
    --text-color: #333333; /* Текст темный по умолчанию */
    --text-inverted: #ffffff; /* Белый текст для темных блоков */
    --text-light: #666666; /* Бледный текст для темного фона */
    --text-light-inverted: #cccccc; /* Бледный текст для светлого фона */
    --bg-dark: #161616; /* Темный фон страницы */
    --bg-light: #f5f5f5; /* Светлый фон блоков */
    --bg-card: #ffffff; /* Фон карточек на светлом фоне */
    --white: #ffffff;
    --black: #000000;
    --border-color: #e0e0e0;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Убираем outline при клике на любые элементы, если он возникает */
*:focus {
    outline: none;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Убираем outline при клике на любые элементы, если он возникает */
*:focus {
    outline: none;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Убираем outline при клике на любые элементы, если он возникает */
*:focus {
    outline: none;
}

/* Запрещаем появление курсора ввода на не-редактируемых элементах */
p, h1, h2, h3, h4, h5, h6, span, div, li, ul, section, article, header, footer {
    user-select: none; /* Запрет выделения текста */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Разрешаем выделение только в полях ввода и параграфах с важным контентом */
input, textarea, .contact-info p, .about-content p, .catalog-info p {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #003366;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-color);
}

/* Верхняя панель */
.top-bar {
    background-color: #111111;
    color: #cccccc;
    font-size: 13px;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left a, .top-bar-right a {
    margin-right: 20px;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-bar-right .phone {
    font-weight: 700;
    color: var(--white);
    font-size: 14px;
    margin-right: 20px;
    margin-bottom: 5px;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    color: #cccccc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    color: var(--secondary-color);
}


/* Шапка */
.header {
    background-color: var(--white); /* Светлая шапка */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
    width: 250px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    width: 75%;
    height: 100%;
    object-fit: contain;
    transform-origin: left center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list > li {
    margin: 0 15px;
    position: relative;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    display: block;
}

.nav-list a.active, .nav-list a:hover {
    color: var(--primary-color);
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white); /* Светлое выпадающее меню */
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light); /* Подсветка в меню */
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Главный экран (Hero) */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

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

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons .btn {
    margin-right: 0;
}

/* Блок преимуществ */
.features {
    padding: 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--white); /* Светлые карточки */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Светлая тень */
    border-radius: 4px;
}

.feature-item {
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-10px);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color); /* Более яркий оранжевый для цифр */
    margin-bottom: 15px;
    line-height: 1;
    opacity: 1; /* Полная непрозрачность */
}

.feature-item:hover .feature-number {
    color: var(--white);
    opacity: 1;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

.feature-item:hover p {
    color: rgba(255,255,255,0.8);
}

/* Общие секции */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.bg-light .section-title {
    color: var(--text-color);
}

.bg-light .catalog-item {
    background-color: var(--white);
    color: var(--text-color);
}

.bg-light .catalog-info p {
    color: var(--text-light);
}

.bg-light .catalog-info h3 {
    color: var(--text-color);
}

.bg-light .catalog-info h3 a {
    color: var(--text-color);
}

.bg-light .catalog-info h3 a:hover {
    color: var(--primary-color);
}

.bg-light .section-title {
    color: var(--text-color);
}

.bg-light .catalog-item {
    background-color: var(--white);
    color: var(--text-color);
}

.bg-light .catalog-info p {
    color: var(--text-light);
}

.bg-light .catalog-info h3 {
    color: var(--text-color);
}

.bg-light .catalog-info h3 a {
    color: var(--text-color);
}

.bg-light .catalog-info h3 a:hover {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 30px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Блок О компании */
.about-inner {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
}

.about-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.about-feature h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.about-feature p {
    font-size: 14px;
    color: var(--text-light);
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.about-list i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 4px;
}

/* Каталог продукции */
.section-header {
    margin-bottom: 50px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.catalog-item {
    background-color: var(--white); /* Светлые карточки */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Светлая тень */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.catalog-img {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.catalog-item:hover .catalog-img img {
    transform: scale(1.05);
}

.catalog-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.catalog-info h3 a:hover {
    color: var(--primary-color);
}

.catalog-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

.catalog-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.catalog-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.catalog-item:hover .catalog-link i {
    transform: translateX(5px);
}

/* Подвал (Footer) */
.footer {
    background-color: #111111;
    color: #cccccc;
    padding-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
    gap: 50px;
}

.footer-col:first-child {
    max-width: 450px;
}

.footer-logo {
    display: flex;
    align-items: center;
    height: 80px;
    width: 250px;
    margin-bottom: 10px;
    position: relative;
}

.footer-logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.footer-logo img {
    width: 75%;
    height: 100%;
    object-fit: contain;
    transform-origin: left center;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contacts i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 4px;
}

.footer-contacts a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Контакты - формы на светлом фоне */
.contact-form-wrapper {
    flex: 1;
    background: var(--white); /* Светлый фон формы */
    padding: 40px;
    border-radius: 8px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--white); /* Светлые поля ввода */
    color: var(--text-color);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}
/* Анимации при скролле */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Кнопка наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-item:nth-child(2) {
        border-right: none;
    }
    .feature-item:nth-child(3), .feature-item:nth-child(4) {
        border-top: 1px solid var(--border-color);
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-list > li {
        margin: 0;
        width: 100%;
    }
    
    .nav-list a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: none;
        background-color: var(--bg-light);
    }
    
    .dropdown:hover .dropdown-menu {
        display: none; /* Отключаем hover на мобилках, чтобы он не конфликтовал с кликом */
    }
    
    .dropdown-menu.active {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-action {
        display: none;
    }
    
    .about-inner {
        flex-direction: column;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-left, .top-bar-right {
        margin-bottom: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-bar-left {
        display: none; /* Скрываем адрес в мобильной версии */
    }
    
    .top-bar-right .phone {
        margin-bottom: 5px;
        margin-right: 10px;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .features {
        margin-top: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
}
