/* Локальное подключение шрифтов */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-color: #0b3d91;
    --accent-color: #fca311;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Чтобы футер всегда был внизу */
}

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

/* Header */
.header { background-color: var(--primary-color); color: var(--white); padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; font-family: 'Courier New', Courier, monospace; letter-spacing: 2px; }
.nav a { color: var(--white); text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.nav a:hover { color: var(--accent-color); }

/* Hero */
.hero { background-color: var(--bg-light); padding: 60px 0; border-bottom: 1px solid #ddd; }
.hero-content { display: flex; gap: 40px; align-items: center; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-color); line-height: 1.2; }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-video { flex: 1; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.local-video { width: 100%; display: block; }

/* Buttons */
.btn { display: inline-block; padding: 12px 25px; text-decoration: none; border-radius: 4px; font-weight: bold; transition: background 0.3s, color 0.3s; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background-color: var(--accent-color); color: var(--text-color); }
.btn-primary:hover { background-color: #e08e0b; }
.btn-outline { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); margin-left: 10px; }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

/* Features */
.features { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2rem; color: var(--primary-color); }
.features-list { list-style: none; max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.features-list li { position: relative; padding-left: 30px; }
.features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; font-size: 1.2rem; }

/* Grid & Cards (Links) */
.applications { padding: 60px 0; background-color: var(--bg-light); }
.grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.grid-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-color); transition: transform 0.3s, box-shadow 0.3s; height: 100%; display: flex; flex-direction: column; }
.grid-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.grid-card h3 { margin-bottom: 15px; color: var(--primary-color); }
.read-more { margin-top: auto; padding-top: 20px; color: var(--accent-color); font-weight: bold; font-size: 0.9rem; }

/* Specs Table */
.specs { padding: 80px 0; background-color: var(--white); }
.specs-table { max-width: 900px; margin: 0 auto; border-top: 1px solid #eee; }
.specs-row { display: grid; grid-template-columns: 1fr 2fr; padding: 20px 0; border-bottom: 1px solid #eee; align-items: center; }
.specs-label { font-weight: bold; color: var(--primary-color); padding-right: 20px; }
.specs-value { color: #444; }

/* Contacts (Phone Only) */
.contacts { padding: 80px 0; background-color: var(--bg-light); text-align: center; }
.contact-info { max-width: 600px; margin: 0 auto; padding: 40px; background: var(--white); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.contact-info p { font-size: 1.1rem; color: var(--text-color); }
.phone-number { display: block; font-size: 2.5rem; font-weight: bold; color: var(--primary-color); text-decoration: none; margin: 20px 0; transition: color 0.3s; }
.phone-number:hover { color: var(--accent-color); }
.contact-subtext { font-size: 0.9rem !important; color: #777 !important; }

/* Footer */
.footer { background-color: var(--text-color); color: var(--white); text-align: center; padding: 20px 0; margin-top: auto; }

/* Стили для внутренних страниц услуг */
.page-header { background-color: var(--primary-color); color: var(--white); padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-content { padding: 60px 0; flex: 1; max-width: 900px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--accent-color); text-decoration: none; font-weight: bold; }
.back-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-actions { display: flex; flex-direction: column; gap: 10px; }
    .btn-outline { margin-left: 0; }
    .features-list { grid-template-columns: 1fr; }
    .nav { display: none; } /* В будущем здесь можно сделать гамбургер-меню */
    .specs-row { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
    .specs-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
    .phone-number { font-size: 1.8rem; }
}