:root {
    --primary: #0f172a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary);
    color: white;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

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

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.logo span { color: var(--accent); }

.nav {
    display: flex;
    gap: 26px;
    align-items: center;
}
.nav a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav a:hover { color: white; }

.header-phone {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn:hover { background: var(--accent-hover); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 70px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }

.hero-lead {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-form {
    background: white;
    color: var(--text);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-form h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}
.hero-form .form-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.form-group { margin-bottom: 12px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.hero-form .btn { width: 100%; margin-top: 6px; }

.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* Sections */
.section { padding: 70px 0; }

.section-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 45px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* About */
.about-text {
    max-width: 780px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 1.08rem;
    color: var(--text-light);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: white;
    padding: 26px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.stat-card .number {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.stat-card .label {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}
.catalog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.catalog-card-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 26px 22px;
    text-align: center;
}
.catalog-card-header .code {
    font-size: 1.9rem;
    font-weight: 700;
    opacity: 0.95;
}
.catalog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.catalog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.catalog-card-body p {
    color: var(--text-light);
    font-size: 0.93rem;
    margin-bottom: 18px;
    flex: 1;
}
.catalog-card .btn {
    text-align: center;
    width: 100%;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-item { margin-bottom: 18px; }
.contact-item strong {
    display: block;
    margin-bottom: 3px;
}
.contact-item span,
.contact-item a { color: var(--text-light); }

.contact-form {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.contact-form h3 { margin-bottom: 18px; }

/* Footer */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 36px 0 22px;
    text-align: center;
}
.footer a { color: #cbd5e1; }
.footer a:hover { color: white; }
.footer-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #1e293b;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
}
@media (max-width: 500px) {
    .stats { grid-template-columns: 1fr; }
    .hero { padding: 50px 0 60px; }
}
