/* ============================================
   АВИААГРЕГАТ — Каталог авиационных агрегатов
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0d4770;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #082e48; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Header --- */
.header-top {
  background: #0a1f2e;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.header-phone {
  color: #e8a838;
  font-weight: 600;
  font-size: 1rem;
}
.header-phone:hover {
  color: #f0b94d;
}
.header-email {
  color: #8bb8d9;
}
.header-email:hover {
  color: #aad0f0;
}
.header-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

.site-header {
  background: linear-gradient(135deg, #0d2b45 0%, #1a4a6e 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-bottom {
  padding: 0.8rem 0;
}

.header-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.site-logo:hover { color: #c9ddee; }
.site-logo span { color: #8bb8d9; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #c9ddee;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: #8bb8d9;
}

/* --- Main Content --- */
main {
  flex: 1;
  padding: 2rem 0;
}

/* --- Hero (Главная) --- */
.hero {
  background: linear-gradient(135deg, #16384d 0%, #27648a 100%);
  color: #fff;
  padding: 4rem 0;
  margin-bottom: 0;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: #e8a838;
  color: #1a1a1a;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: #f0b94d;
  color: #1a1a1a;
  transform: translateY(-1px);
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d2b45;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #5a6a7a;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* --- About block --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.about-card h3 {
  color: #0d2b45;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.about-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.about-card li::before {
  content: "✓";
  color: #1e7e34;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* --- Catalog Grid --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.catalog-card-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f0f2f4;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.catalog-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d2b45;
  margin-bottom: 0.35rem;
}

.catalog-card-draw {
  font-size: 0.85rem;
  color: #6a7a8a;
  font-family: 'Consolas', 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.catalog-card-meta {
  font-size: 0.85rem;
  color: #5a6a7a;
  margin-bottom: 0.75rem;
  flex: 1;
}

.catalog-card-link {
  display: inline-block;
  color: #0d4770;
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
}
.catalog-card-link::after {
  content: " →";
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6a7a8a;
}
.breadcrumbs a {
  color: #0d4770;
}
.breadcrumbs span {
  color: #1a1a1a;
}
.breadcrumbs-sep {
  margin: 0 0.5rem;
  color: #aaa;
}

/* --- Product Page --- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) {
  .product-layout { grid-template-columns: 1fr; }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-image {
  width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}
.product-image img {
  max-height: 400px;
  object-fit: contain;
}

.product-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d2b45;
  margin-bottom: 0.5rem;
}

.product-draw {
  font-size: 0.95rem;
  color: #6a7a8a;
  font-family: 'Consolas', 'Courier New', monospace;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e4e8;
}

.product-specs {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.product-specs dt {
  font-weight: 600;
  color: #0d2b45;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}
.product-specs dt:first-child { margin-top: 0; }
.product-specs dd {
  margin: 0.2rem 0 0 0;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.product-description {
  line-height: 1.7;
  color: #2a3a4a;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #0d4770;
  font-weight: 500;
}
.back-link::before {
  content: "← ";
}

/* --- Footer --- */
.site-footer {
  background: #0d2b45;
  color: #aabaca;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer a {
  color: #8bb8d9;
}

/* --- 404 / States --- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #5a6a7a;
}

/* --- Yandex / Search optimizations --- */
.ya-noindex { /* for Yandex noindex blocks if needed */ }

/* --- Page Title --- */
.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d2b45;
  margin-bottom: 0.25rem;
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .hero-cta, .back-link { display: none; }
  body { background: #fff; color: #000; }
}
