/* Базовые настройки */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #f8fafc; color: #1e293b; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: #2563eb; }
ul { list-style-position: inside; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Шапка */
header { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 700; color: #0f172a; }
nav a { margin-left: 1.5rem; color: #475569; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a.active { color: #2563eb; }

/* Главная (Hero) */
.hero { padding: 4rem 0; background: #ffffff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.5rem; color: #0f172a; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: #475569; margin-bottom: 2rem; }
.hero-image .placeholder-img { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-radius: 12px; height: 300px; display: flex; align-items: center; justify-content: center; color: #2563eb; font-weight: 600; border: 2px dashed #93c5fd; }

/* Кнопки */
.btn { display: inline-block; background: #2563eb; color: #ffffff; padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: #1d4ed8; }

/* Сетки и карточки */
.features { padding: 4rem 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: #0f172a; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: #ffffff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.card h3 { margin-bottom: 1rem; color: #0f172a; }

/* Внутренние страницы */
.page-content { padding: 3rem 0; flex: 1; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #0f172a; }
.subtitle { color: #64748b; font-size: 1.1rem; margin-bottom: 2rem; }
.services-list { display: grid; gap: 1.5rem; }
.service-item { background: #ffffff; padding: 1.5rem; border-left: 4px solid #2563eb; border-radius: 0 8px 8px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.service-item h2 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #0f172a; }
.about-content { background: #ffffff; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.about-content h2 { margin: 1.5rem 0 0.8rem; font-size: 1.4rem; color: #0f172a; }

/* Форма и контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info, .contact-form { background: #ffffff; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.contact-info p { margin-bottom: 1rem; }
.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Подвал */
footer { background: #0f172a; color: #94a3b8; padding: 2rem 0; text-align: center; font-size: 0.9rem; margin-top: auto; }
footer p { margin-bottom: 0.5rem; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-grid, .contacts-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .header-container { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 0.75rem; }
}
