:root {
  --red: #c8102e;
  --red-dark: #8b0b20;
  --green: #2f5233;
  --bg: #f7f7f5;
  --text: #222222;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

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

.logo-block { display: flex; align-items: center; gap: 16px; }
.logo { height: 64px; width: auto; }
.logo-text h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: 0.5px; }
.logo-text p { font-size: 0.9rem; opacity: 0.9; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { text-decoration: none; opacity: 0.8; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav ul {
    display: none;
    flex-direction: column;
    background: var(--red-dark);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 20px;
    gap: 12px;
  }
  .main-nav ul.open { display: flex; }
  .logo-text h1 { font-size: 1.7rem; }
}

/* Hero */
.hero {
  background: #fff;
  border-bottom: 4px solid var(--red);
  padding-bottom: 40px;
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .hero-image { height: 240px; }
}

.hero-lead {
  max-width: 700px;
  margin: 30px auto 26px;
  text-align: center;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--red); }
.stat-label { font-size: 0.85rem; color: #555; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: #fff; }

.section-title {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: var(--red-dark);
  border-left: 6px solid var(--red);
  padding-left: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 20px;
  border-top: 4px solid var(--red);
}

.card h3 { color: var(--red-dark); margin-bottom: 8px; font-size: 1.1rem; }
.card .date { font-size: 0.8rem; color: #888; margin-bottom: 6px; display: block; }

.tech-card { border-top-color: var(--green); }
.tech-photo-placeholder {
  background: #eee;
  color: #999;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.hint {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info p { margin-bottom: 10px; }

.emergency-box {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 20px;
}
.emergency-box h3 { margin-bottom: 12px; }
.emergency-box ul { list-style: none; }
.emergency-box li { margin-bottom: 6px; font-size: 1rem; }

/* Footer */
.site-footer {
  background: var(--red-dark);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

.loading { color: #888; font-style: italic; }
