/* НПК ВЕКТОР — официальный сайт. Дизайн 2010, душа 1998 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Times New Roman", Georgia, serif;
  background: #dfe9f3 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><rect width='40' height='40' fill='%23dfe9f3'/><circle cx='20' cy='20' r='1' fill='%23c3d4e6'/></svg>");
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
}

a { color: #0033aa; }
a:hover { color: #cc0000; text-decoration: none; }

/* ===== ШАПКА ===== */
header {
  background: linear-gradient(180deg, #0a2a66 0%, #1e4fa8 55%, #4a7fd4 100%);
  color: #fff;
  padding: 18px 20px 12px;
  border-bottom: 4px solid #f5b800;
  text-align: center;
}
header h1 {
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #001a4d, 0 0 12px #7fb0ff;
}
header h1 .nano { color: #f5b800; }
header .slogan {
  font-style: italic;
  font-size: 14px;
  color: #cfe0ff;
  margin-top: 4px;
}
header .eng {
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #9dbdff;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
  background: #12408f;
  border-bottom: 1px solid #0a2a66;
  text-align: center;
  padding: 0;
  font-family: Arial, sans-serif;
}
nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 1px solid #2a5cb8;
}
nav a:first-child { border-left: 1px solid #2a5cb8; }
nav a:hover { background: #f5b800; color: #0a2a66; }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.ticker {
  background: #fffbe0;
  border-top: 1px solid #e0d080;
  border-bottom: 1px solid #e0d080;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #8a6d00;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== КОНТЕНТ ===== */
main {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #b8cce4;
  border-right: 1px solid #b8cce4;
  padding: 22px 26px 30px;
  box-shadow: 0 0 18px rgba(0,0,0,.12);
  min-height: 420px;
}

h2 {
  color: #0a2a66;
  font-size: 22px;
  border-bottom: 2px solid #f5b800;
  padding-bottom: 4px;
  margin: 18px 0 12px;
}
h2 .eng { font-family: Arial, sans-serif; font-size: 12px; color: #8899bb; letter-spacing: 2px; font-weight: normal; }

h3 { color: #12408f; font-size: 17px; margin: 14px 0 6px; }

p { margin-bottom: 10px; text-align: justify; }

/* ===== СЧЁТЧИК ===== */
.counter {
  display: inline-block;
  background: #000;
  color: #33ff33;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 4px 10px;
  border: 2px inset #888;
  letter-spacing: 2px;
  margin: 8px 0;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages { list-style: none; margin: 12px 0; }
.advantages li {
  background: #eef4ff;
  border: 1px solid #b8cce4;
  border-left: 6px solid #f5b800;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.advantages li::before { content: "✅ "; }
.advantages li b { color: #0a2a66; }

/* ===== ФОТОСТОК ===== */
.photos { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.photo {
  flex: 1 1 200px;
  height: 130px;
  background: linear-gradient(135deg, #8fa9c9 0%, #5b7ba8 100%) center/cover no-repeat;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #99aacc, 2px 2px 6px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  padding: 8px;
  text-shadow: none;
}
.photo:nth-child(1) { background-image: url("img/handshake.jpg"); }
.photo:nth-child(2) { background-image: url("img/team.jpg"); }
.photo:nth-child(3) { background-image: url("img/office.jpg"); }
/* ===== ПАРТНЁРЫ ===== */
.partners { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.partner {
  flex: 1 1 110px;
  height: 48px;
  background: #e8e8e8;
  border: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
}

/* ===== КНОПКА ЗАЯВКИ ===== */
.btn-cta {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  padding: 14px 34px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px outset #ff6666;
  animation: blink 1.1s step-start infinite;
  margin: 10px 0;
}
@keyframes blink {
  50% { opacity: .45; }
}

/* ===== ТАБЛИЦА КОНТАКТОВ ===== */
table.contacts { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.contacts td { border: 1px solid #b8cce4; padding: 8px 10px; }
table.contacts td:first-child { background: #eef4ff; font-weight: bold; width: 200px; }

/* ===== ФОРМА ===== */
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-weight: bold; color: #12408f; margin-bottom: 3px; font-family: Arial, sans-serif; font-size: 13px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 7px;
  border: 2px inset #b8cce4;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  background: #fffef5;
}

/* ===== КАРТА ===== */
.map {
  height: 180px;
  background:
    repeating-linear-gradient(0deg, #cfe0c0 0 24px, #b8d4a8 24px 25px),
    repeating-linear-gradient(90deg, #cfe0c0 0 24px, #b8d4a8 24px 25px);
  border: 2px solid #88aadd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a5c2a;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 0 4px #fff;
  margin: 10px 0;
}

/* ===== ПОДВАЛ ===== */
footer {
  max-width: 960px;
  margin: 0 auto 30px;
  background: #0a2a66;
  color: #b8cce4;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 14px 26px;
  border-top: 4px solid #f5b800;
  text-align: center;
}
footer a { color: #f5b800; }

/* ===== ПОПАП ПОДПИСКИ ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.popup-overlay.show { display: flex; }
.popup {
  background: #fff;
  border: 6px solid #f5b800;
  max-width: 380px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 0 40px #000;
}
.popup h3 { color: #cc0000; font-size: 20px; }
.popup p { font-size: 14px; margin: 8px 0 14px; text-align: center; }
.popup input { width: 100%; padding: 8px; border: 2px inset #b8cce4; margin-bottom: 10px; }
.popup .close { position: absolute; }

/* ===== ОНЛАЙН-КОНСУЛЬТАНТ ===== */
.consultant {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 230px;
  background: #fff;
  border: 3px solid #12408f;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  font-family: Arial, sans-serif;
  font-size: 12px;
  z-index: 500;
}
.consultant .head {
  background: #12408f;
  color: #fff;
  padding: 7px 10px;
  font-weight: bold;
  font-size: 13px;
}
.consultant .head .status { color: #66ff66; font-size: 11px; }
.consultant .body { padding: 10px; }
.consultant .body p { font-size: 12px; text-align: left; margin-bottom: 8px; }
.consultant .body a {
  display: block;
  text-align: center;
  background: #f5b800;
  color: #0a2a66;
  font-weight: bold;
  padding: 7px;
  text-decoration: none;
}
