/* Сброс стилей */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #1e40af; --primary-dark: #1e3a8a; --primary-light: #dbeafe;
    --accent-color: #ff6600; --accent-hover: #e55a00; --success-color: #059669;
    --text-color: #374151; --text-muted: #6b7280; --background: #ffffff;
    --border-color: #e5e7eb; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --radius: 8px;
}

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

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

/* Шапка */
.site-header { background: #fff; padding: 1rem 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.5rem; color: var(--primary-color); text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-color); font-weight: 500; padding: 8px; border-radius: 4px; transition: color 0.3s, background-color 0.3s; }
.main-nav a:hover { color: var(--primary-color); }
.main-nav a.active { color: var(--primary-color); font-weight: 700; }
.header-contacts { display: flex; align-items: center; gap: 1.5rem; }
.header-phone { font-weight: 600; color: var(--text-color); text-decoration: none; font-size: 1.1rem; }
.header-cta-button { background: var(--accent-color); color: white; padding: 10px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 600; white-space: nowrap; transition: background-color 0.3s; }
.header-cta-button:hover { background: var(--accent-hover); }
.mobile-menu-toggle { display: none; cursor: pointer; background: none; border: none; font-size: 2rem; color: var(--primary-color); }

/* Герой секция */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: white; }
.hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: -1; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-button { background: var(--accent-color); color: white; padding: 16px 32px; border: none; border-radius: var(--radius); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.cta-button:hover { background: var(--accent-hover); }

/* Фоны для разных страниц (ИЗМЕНЕНО НА .JPG) */
.page-phones .hero-background { background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(30, 58, 138, 0.9)), url('../img/hero-phones.jpg'); }
.page-tvs .hero-background { background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(30, 58, 138, 0.9)), url('../img/hero-tvs.jpg'); }
.page-coffee .hero-background { background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(30, 58, 138, 0.9)), url('../img/hero-coffee.jpg'); }
.page-robots .hero-background { background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(30, 58, 138, 0.9)), url('../img/hero-robots.jpg'); }

/* Секции */
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; color: var(--primary-color); }
.form-section { padding: 5rem 0; background: var(--primary-light); }
.contact-form { max-width: 600px; margin: 0 auto; background: white; padding: 3rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 1rem; transition: border-color 0.3s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.submit-button { width: 100%; background: var(--accent-color); color: white; padding: 16px; border: none; border-radius: var(--radius); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.submit-button:hover { background: var(--accent-hover); }

/* Футер */
.footer { background: var(--primary-dark); color: #e0e0e0; padding: 3rem 0 0; text-align: left; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding: 0 20px 3rem; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-main { flex: 2; min-width: 300px; }
.footer-main h3 { color: white; font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.footer-main .services-list { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--primary-light); line-height: 1.5; }
.footer-contact .phone { font-weight: 700; font-size: 1.3rem; color: white; margin-right: 1.5rem; text-decoration: none; }
.footer-contact .phone:hover { text-decoration: underline; }
.footer-contact .location { color: var(--primary-light); }
.footer-nav { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { color: var(--primary-light); text-decoration: none; transition: color 0.3s, text-decoration 0.3s; }
.footer-nav a:hover { color: white; text-decoration: underline; }
.footer-copy { background: var(--primary-color); text-align: center; padding: 1rem 20px; font-size: 0.9rem; font-weight: 500; color: white; }

/* Адаптивность */
@media (max-width: 1024px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; background: #fff; flex-direction: column; padding: 1rem; box-shadow: var(--shadow); border-top: 1px solid var(--border-color); }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 1rem; align-items: center; width: 100%; }
    .mobile-menu-toggle { display: block; }
    .header-contacts .header-phone { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .contact-form { padding: 2rem 1rem; }
    .container { padding: 0 15px; }
    .header-contacts .header-cta-button { display: none; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-main { text-align: center; }
    .footer-nav { text-align: center; align-items: center; margin-top: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
}
