:root {
    --primary: #ff6b00;
    --dark: #1a1a1a;
    --white: #ffffff;
    --gray: #f4f4f4;
    --border: #e0e0e0;
    --text: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--dark); padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--primary); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 900; color: #fff; }
.logo span { color: var(--primary); }
.nav-links a { color: #fff; text-decoration: none; margin-left: 20px; font-weight: 600; font-size: 14px; }
.nav-phone { border: 2px solid var(--primary); padding: 8px 15px; border-radius: 4px; color: var(--primary) !important; }

/* Hero */
.hero { background: var(--dark); color: #fff; padding: 120px 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; max-width: 600px; }

/* Buttons */
.btn { padding: 15px 30px; border-radius: 4px; font-weight: 700; cursor: pointer; display: inline-block; text-decoration: none; text-align: center; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 10px; }
.btn-group { display: flex; }

/* Catalog Grid - FIX START */
.section { padding: 80px 0; }
.section-header h2 { font-size: 2rem; margin-bottom: 40px; text-transform: uppercase; position: relative; padding-bottom: 15px; }
.section-header h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 4px; background: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;

    background-image: url("../img/hero-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

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


.card { 
    background: #fff; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; /* Элементы один под другим */
    height: 100%; 
    overflow: hidden; 
}

.card-image { 
    width: 100%; 
    aspect-ratio: 4 / 3; /* или 16 / 9 */
    background: #222; 
}

.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Картинка заполняет область */
    display: block;
}

.card-body { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; /* Кнопка всегда внизу */
}

.card-body h3 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.2; }
.card-body p { font-size: 14px; color: #666; margin-bottom: 20px; }

.btn-sm { background: none; border: 2px solid var(--dark); padding: 10px; font-weight: 700; width: 100%; cursor: pointer; transition: 0.3s; }
.btn-sm:hover { background: var(--dark); color: #fff; }
/* Catalog Grid - FIX END */

/* Advantages */
.card-adv { padding: 30px; border: 1px solid var(--border); text-align: center; }
.adv-icon { color: var(--primary); font-size: 30px; font-weight: 900; margin-bottom: 10px; }
#advantages .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Form */
.order-form { background: var(--gray); }
.form-container { display: flex; flex-wrap: wrap; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.form-sidebar { flex: 1 1 300px; background: var(--dark); color: #fff; padding: 40px; }
.form-main { flex: 2 1 400px; padding: 40px; }
.form-list { margin-top: 20px; list-style: none; }
.form-list li { margin-bottom: 10px; color: var(--primary); font-weight: 600; }

input, select { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 4px; }

/* Footer */
.footer { background: var(--dark); color: #777; padding: 40px 0; text-align: center; }

@media (max-width: 768px) {
    .btn-group { flex-direction: column; gap: 10px; }
    .btn-outline { margin-left: 0; }
    .nav-links { display: none; }
}