/* ========================================
Базовые настройки и переменные
======================================== */
:root {
--primary: #f28c38;
--primary-dark: #e07a2a;
--dark-bg: #0a1c2f;
--dark-light: #112f44;
--gray-light: #f5f7fc;
--gray-medium: #eef2f8;
--text-dark: #1e2a3a;
--text-gray: #4a5c6c;
--white: #ffffff;
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', sans-serif;
background-color: var(--gray-light);
color: var(--text-dark);
line-height: 1.5;
}

.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 24px;
}

/* ========================================
Header и навигация (с мобильным меню)
======================================== */
.header {
background: var(--dark-bg);
color: white;
padding: 20px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}

.logo h1 {
font-size: 28px;
font-weight: 700;
letter-spacing: -0.5px;
}

.logo span {
font-weight: 400;
font-size: 14px;
color: #9aaebf;
display: block;
}

.nav {
display: flex;
gap: 28px;
align-items: center;
}

.nav a {
color: #e0e7ef;
text-decoration: none;
font-weight: 500;
transition: var(--transition);
}

.nav a:hover, .nav a.active {
color: var(--primary);
}

.btn-contact {
background: var(--primary);
border: none;
padding: 8px 20px;
border-radius: 40px;
font-weight: 600;
color: var(--dark-bg);
cursor: pointer;
transition: var(--transition);
}

.btn-contact:hover {
background: var(--primary-dark);
}

/* Мобильное меню */
.menu-toggle {
display: none;
background: none;
border: none;
color: white;
font-size: 28px;
cursor: pointer;
}

@media (max-width: 768px) {
.menu-toggle {
display: block;
}
.nav {
display: none;
flex-direction: column;
width: 100%;
gap: 15px;
padding-top: 20px;
}
.nav.open {
display: flex;
}
.header-inner {
flex-wrap: wrap;
}
.btn-contact {
margin-top: 10px;
width: 100%;
text-align: center;
}
}

/* ========================================
Герой (главная страница)
======================================== */
.hero {
background: linear-gradient(135deg, #0e2a3b 0%, var(--dark-bg) 100%);
color: white;
padding: 80px 0;
}

.hero-grid {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 40px;
}

.hero-text {
flex: 1;
}

.hero-text h2 {
font-size: 42px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 20px;
}

.hero-text p {
font-size: 18px;
color: #cbdbe0;
margin-bottom: 32px;
max-width: 550px;
}

.hero-buttons {
display: flex;
gap: 16px;
flex-wrap: wrap;
}

.btn-primary {
background: var(--primary);
color: var(--dark-bg);
padding: 12px 32px;
border-radius: 40px;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: var(--transition);
}

.btn-outline {
border: 1px solid var(--primary);
color: var(--primary);
padding: 12px 32px;
border-radius: 40px;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: var(--transition);
}

.btn-outline:hover {
background: rgba(242, 140, 56, 0.1);
}

.hero-image {
flex: 1;
text-align: center;
}

.hero-image img {
max-width: 100%;
border-radius: 24px;
box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
}

/* ========================================
Блоки преимуществ, продукции, о компании
======================================== */
.benefits, .products, .about, .form-section {
padding: 80px 0;
}

.section-title {
text-align: center;
font-size: 32px;
font-weight: 700;
margin-bottom: 48px;
}

.benefits-grid {
display: flex;
flex-wrap: wrap;
gap: 32px;
justify-content: center;
}

.benefit-card {
background: var(--white);
border-radius: 20px;
padding: 32px 24px;
text-align: center;
flex: 1;
min-width: 240px;
transition: var(--transition);
border: 1px solid var(--gray-medium);
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefit-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.benefit-icon {
font-size: 48px;
margin-bottom: 20px;
}

.products-grid {
display: flex;
flex-wrap: wrap;
gap: 30px;
justify-content: center;
}

.product-card {
background: var(--white);
border-radius: 24px;
overflow: hidden;
width: 280px;
transition: var(--transition);
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

.product-img {
height: 200px;
background: var(--gray-medium);
display: flex;
align-items: center;
justify-content: center;
}

.product-img img {
max-width: 80%;
max-height: 80%;
object-fit: contain;
}

.product-info {
padding: 20px;
}

.product-info h4 {
font-size: 20px;
margin-bottom: 10px;
}

.product-info p {
color: var(--text-gray);
font-size: 14px;
margin-bottom: 16px;
}

.product-tag {
font-weight: 600;
color: var(--primary);
font-size: 14px;
}

.about-inner {
display: flex;
flex-wrap: wrap;
gap: 40px;
align-items: center;
}

.about-text {
flex: 1;
}

.about-text h3 {
font-size: 28px;
margin-bottom: 20px;
}

.about-text p {
margin-bottom: 20px;
color: var(--text-dark);
}

.about-image {
flex: 1;
text-align: center;
}

.about-image img {
max-width: 100%;
border-radius: 24px;
}

/* ========================================
Форма обратной связи
======================================== */
.form-section {
background: var(--dark-bg);
color: white;
}

.form-card {
max-width: 680px;
margin: 0 auto;
background: var(--dark-light);
padding: 40px;
border-radius: 32px;
}

.form-card h3 {
font-size: 28px;
margin-bottom: 12px;
}

.form-group {
margin-bottom: 20px;
}

input, textarea {
width: 100%;
padding: 14px 18px;
border-radius: 40px;
border: none;
font-family: inherit;
background: var(--gray-light);
font-size: 16px;
transition: var(--transition);
}

textarea {
border-radius: 24px;
resize: vertical;
}

input:focus, textarea:focus {
outline: none;
box-shadow: 0 0 0 2px var(--primary);
}

.btn-submit {
background: var(--primary);
border: none;
padding: 14px 32px;
font-weight: 700;
border-radius: 40px;
font-size: 16px;
cursor: pointer;
width: 100%;
transition: var(--transition);
}

.btn-submit:hover {
background: var(--primary-dark);
}

.form-message {
text-align: center;
margin-top: 20px;
font-size: 14px;
}

/* ========================================
Footer
======================================== */
.footer {
background: #071625;
padding: 40px 0;
color: #9aaebf;
text-align: center;
}

.footer-contacts {
margin-bottom: 20px;
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}

.footer-contacts a {
color: var(--primary);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
}

.footer-contacts a:hover {
color: var(--primary-dark);
}

.footer p {
margin-top: 20px;
font-size: 14px;
}

/* ========================================
Анимации появления (scroll reveal)
======================================== */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}

.reveal.active {
opacity: 1;
transform: translateY(0);
}

/* ========================================
Страница каталога (дополнительные стили)
======================================== */
.catalog-category {
margin-bottom: 60px;
}

.catalog-category h2 {
font-size: 28px;
margin-bottom: 30px;
padding-bottom: 10px;
border-bottom: 3px solid var(--primary);
display: inline-block;
}

.catalog-items {
display: flex;
flex-wrap: wrap;
gap: 30px;
}

.catalog-item {
background: var(--white);
border-radius: 20px;
padding: 20px;
width: calc(25% - 23px);
min-width: 220px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
transition: var(--transition);
}

.catalog-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.catalog-item img {
max-width: 100%;
height: 120px;
object-fit: contain;
margin-bottom: 15px;
}

.catalog-item h3 {
font-size: 18px;
margin-bottom: 10px;
}

.catalog-item p {
font-size: 14px;
color: var(--text-gray);
}

@media (max-width: 768px) {
.catalog-item {
width: calc(50% - 15px);
}
.hero-text h2 {
font-size: 32px;
}
.section-title {
font-size: 28px;
}
.footer-contacts {
flex-direction: column;
gap: 10px;
}
}

/* ========================================
Страница контактов (карта, детали)
======================================== */
.contact-info {
display: flex;
flex-wrap: wrap;
gap: 40px;
margin-bottom: 60px;
}

.contact-details {
flex: 1;
background: var(--white);
padding: 30px;
border-radius: 24px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-details h3 {
font-size: 24px;
margin-bottom: 20px;
color: var(--dark-bg);
}

.contact-details p {
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 12px;
}

.contact-details i {
font-size: 20px;
color: var(--primary);
width: 24px;
}

.map {
flex: 1;
height: 400px;
border-radius: 24px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.map iframe {
width: 100%;
height: 100%;
border: 0;
}